Is it possible to turn the instance inspector on and off with triggers?
The following toggles which buttons show, but the inspector is always
visible.
<xforms:switch> Thanks, -Jim -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Jim
> Is it possible to turn the instance inspector on and off with triggers? > The following toggles which buttons show, but the inspector is always > visible. just put the "hide" trigger together with the inspector into a xforms:group element: <xforms:switch> <xforms:case id="inspector-visible" selected="true"> <xforms:group> <xforms:trigger> <xforms:label>Hide Inspector</xforms:label> <xforms:toggle ev:event="DOMActivate" case="inspector-hidden" /> </xforms:trigger> <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget" /> </xforms:group> </xforms:case> <xforms:case id="inspector-hidden" selected="false"> <xforms:trigger> <xforms:label>Show Inspector</xforms:label> <xforms:toggle ev:event="DOMActivate" case="inspector-visible" /> </xforms:trigger> </xforms:case> </xforms:switch> HTH florian -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
I should mention that the XForms inspector is likely to make your page
slower, even when hidden with an xforms:switch. -Erik On Jun 11, 2008, at 9:39 AM, Florian Schmitt wrote: > Jim >> Is it possible to turn the instance inspector on and off with >> triggers? The following toggles which buttons show, but the >> inspector is always visible. > > just put the "hide" trigger together with the inspector into a > xforms:group element: > > <xforms:switch> > <xforms:case id="inspector-visible" selected="true"> > <xforms:group> > <xforms:trigger> > <xforms:label>Hide Inspector</xforms:label> > <xforms:toggle ev:event="DOMActivate" case="inspector- > hidden" /> > </xforms:trigger> > <widget:xforms-instance-inspector > xmlns:widget="http://orbeon.org/oxf/xml/widget" /> > </xforms:group> > </xforms:case> > <xforms:case id="inspector-hidden" selected="false"> > <xforms:trigger> > <xforms:label>Show Inspector</xforms:label> > <xforms:toggle ev:event="DOMActivate" case="inspector- > visible" /> > </xforms:trigger> > </xforms:case> > </xforms:switch> > > HTH > florian > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by fl.schmitt(ops-users)
Florian Schmitt wrote:
> Jim >> Is it possible to turn the instance inspector on and off with >> triggers? The following toggles which buttons show, but the inspector >> is always visible. Thank you, Florian, that worked! I don't understand why the group helps, but it does work! -Jim -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Jim,
On Wed, Jun 11, 2008 at 6:54 AM, Jim Logan <[hidden email]> wrote: > Thank you, Florian, that worked! I don't understand why the group helps, but > it does work! Whatever is inside a case which is not selected gets the class xforms-case-deselected, which has a display: none. The XForms Inspector has a span with a class widgets-xforms-instance-inspector with has a display: block, and it happens to take the precedence of the display: none of xforms-case-deselected. This is why adding a group solves the problem. To be compatible with the switch/case, the XForms Inspector could have another layer of span. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Alessandro Vernet wrote:
> Jim, > > On Wed, Jun 11, 2008 at 6:54 AM, Jim Logan <[hidden email]> wrote: > >> Thank you, Florian, that worked! I don't understand why the group helps, but >> it does work! >> > > Whatever is inside a case which is not selected gets the class > xforms-case-deselected, which has a display: none. The XForms > Inspector has a span with a class widgets-xforms-instance-inspector > with has a display: block, and it happens to take the precedence of > the display: none of xforms-case-deselected. This is why adding a > group solves the problem. To be compatible with the switch/case, the > XForms Inspector could have another layer of span. > > Alex > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |