| Page 1 of 1 | [ 3 posts ] |
|
I'm using Marco's Accordion View widget: http://www.i-marco.nl/weblog/yui-accordion/
My basic format is as follows: Code: <ul id="myAccordion"> <li> <div class="myTriggerElement"> <span class="this">This</span> <span class="that">That</span> </div > <div class="yui-accordion-content"> <p>content here</p> </div > </li> <li> ...etc </li> </ul> Clicking on one of the spans in the trigger element fails to toggle the content panel. Clicking anywhere else in the trigger element works fine. How do I enable the toggle behavior when clicking on elements within the trigger element? Thanks! |
|
Hey rolfsf,
Open a ticket for Marco to start using even delegation for the trigger, or use a diff component Here is a similar approach using AccordionManager: http://bubbling-library.com/sandbox/acc ... licks.html In this case, any element with the class "trigger" and its childs will fire the collapse/expand action. Best Regards, Caridy |
|
Thanks Caridy
I had looked at your accordion and considered it, but I had heard that Marco's widget was going to become an 'official' YUI widget, which would make it easier in the long run. I guess it was an false rumor |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group