This support forum belongs to the Accordion Gallery Module.
Accordion has a bug tracker here: http://github.com/ipeychev/yui3-gallery/issues
| Page 1 of 1 | [ 3 posts ] |
|
Hi all
I want to achieve behaviour like below code and I wonder if there is better approach. Any idea? Thanks! - php Code: actionsContainer.on("itemAdded", function (e) { var items = actionsContainer.get('items'); // push a new item on the top if (items.length > 1) { var targetItem = items[0].get('boundingBox'); var srcItem = e.item.get('boundingBox'); var cb = actionsContainer.get('contentBox'); cb.insertBefore(srcItem, targetItem); // maintaing items list items.splice( items.length - 1, 1 ); items.splice( 0, 0, e.item ); }; }); |
|
Use:
var items = accordion.get( "items" ); accordion.addItem( item, items[0] ); Iliyan |
|
Iliyan
Of couse! I am an idiot and should not write in Javascript! The Accordion item closing confirmation chage works fantastically well as well! Thanks again - php |
| 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