Hello,
I want to have the triggers as part of label on the strip of xxforms:accordion. It would look something like ---------------------------------------------------| Measurement[-][+] ---------------------------------------------------| | | | | | ---------------------------------------------------| Here [-] and [+] are the triggers which would add/delete blocks. Any ideas how can I do it? Regards, Santosh -- 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 |
If add or delete blocks you mean accordion sections then you can have a trigger outside the accordion that adds or deletes nodes in a nodeset and just wrap the accordion control around a repeat pointing to that nodeset. Brian Steuhl Website: http://BTMSoftwareSolutions.com Business Email: [hidden email] Cell: 908-421-0742 Home Office: 732-961-3187 From: Santosh Chandak <[hidden email]> To: [hidden email] Sent: Friday, July 6, 2012 8:52 AM Subject: [ops-users] Triggers as part of label for group appearance xxforms:accordion Hello, I want to have the triggers as part of label on the strip of xxforms:accordion. It would look something like ---------------------------------------------------| Measurement[-][+] ---------------------------------------------------| | | | | | ---------------------------------------------------| Here [-] and [+] are the triggers which would add/delete blocks. Any ideas how can I do it? Regards, Santosh -- 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 -- 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 |
The add and delete triggers would add or delete the entire block having accordion control. Having the triggers outside or inside accordion menu does not seem very user friendly and is waste of space. So I am wondering how to have the triggers on the strip itself (As part of fr:label). For xxforms:fieldset, I could put the triggers on label by using legend.
Any idea if it can be done? Also give pointers if it would mean extending orbeon forms for this. Appreciate your help. Regards, Santosh On Fri, Jul 6, 2012 at 7:59 PM, Brian Steuhl <[hidden email]> wrote:
-- 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
|
If you look at the source:
you will notice that for now the section titles (dt) only places there a static label or an xforms:output. So you would have to modify that behavior if you want to place buttons there. -Erik
On Fri, Jul 6, 2012 at 8:53 PM, Santosh Chandak <[hidden email]> wrote: The add and delete triggers would add or delete the entire block having accordion control. Having the triggers outside or inside accordion menu does not seem very user friendly and is waste of space. So I am wondering how to have the triggers on the strip itself (As part of fr:label). For xxforms:fieldset, I could put the triggers on label by using legend. -- 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 |
Ok, I changed to below code and it works now -
<xsl:otherwise> <!-- Put content in outer scope --> <xforms:output xxbl:scope="outer"> <xsl:copy-of select="$label/(@model | @context | @ref | @bind | @value)"/> </xforms:output> <xforms:group xxbl:scope="outer"> <xsl:copy-of select="$label/node()"/> </xforms:group> </xsl:otherwise> But when I click on the [+] and [-] triggers, it toggles the state of accordion. Could you suggest how to change this behavior where the triggers should not expand or collapse the block? Regards, Santosh On Sat, Jul 7, 2012 at 10:47 AM, Erik Bruchez <[hidden email]> wrote: If you look at the source: -- 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 |
I have it working after restricting the expand collapse from accordion-menu-v2.js with
if(e.srcElement && e.srcElement.className && e.srcElement.className.indexOf('xforms-trigger') != -1 || e.target && e.target.className && e.target.className.indexOf('xforms-trigger')) return; So I have changed accordion.xbl from orbeon-resources-private.jar and accordion-menu-v2.js from orbeon-resources-public.jar. Now I am wondering if it is possible to just put these files somewhere in the war in order to get picked up instead of making changes to the jars. Is that possible? Regards, Santosh On Sun, Jul 8, 2012 at 12:14 PM, Santosh Chandak <[hidden email]> wrote: Ok, I changed to below code and it works now - -- 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 |
This is just an idea .. but perhaps instead of editing the orbeon core scripts you could try adding jQuery accordion ...
http://docs.jquery.com/UI/Accordion and placing your xform content within the div's in this jQuery accordion? Place links to jQuery library inside <head></head>. |
This post was updated on .
An added note .. I've just tried the above untested idea in the /xforms-bookcast/ application and I can place triggers inside the jQuery accordion tabs.
I simply copied as an example the triggers from bookcast here .. <table class="books-action-table"> ... </table> into the jQuery accordion tab and the Save, Revert, Load Sample Data triggers worked fine. Might need some added css to refine the accordion layout. So the general idea is to extend xform definition (produced in Form Builder) by later adding in jQuery scripts as extensions. |
Free forum by Nabble | Edit this page |