| Page 1 of 2 | [ 11 posts ] | Go to page 1, 2 Next |
|
carousel.additem('xxx') works
carouse.additem('xxx',0) doesn't Any ideas? thanks David |
Alberto SantiniYUI Contributor
|
Hello David.
http://developer.yahoo.com/yui/docs/YAH ... od_addItem The item to be appended to the Carousel. If the parameter is a string, it is assumed to be the content of the newly created item. If the parameter is an object, it is assumed to supply the content and an optional class and an optional id of the newly created item. Hope that helps, Alberto |
|
Yeah, I know the syntax. My understanding is that if you do additem("xxx",#") you should get the item dropped into the appropriate position #. unfortunately using that syntax doesn't work at all.
|
Alberto SantiniYUI Contributor
|
Hello David.
I tried that - addItem("...", slot) - and it seems it works correctly [1] I modified Spotlight example [2]: I added a button inserting an item, for instance, at slot 1. Any public link or a test case? Regards, IceBox [1] http://pastebin.com/Nz6G7Gtm [2] http://developer.yahoo.com/yui/examples ... ction.html |
|
Unfortunately I don't have publicly accessible examples, but I'm running into this issue:
if I try to do an addItem("xxx",#) and the # is > than carousel.getItems().length, it fails. therefore I can't use that syntax it to add items to the end of the carousel. Is that expected behavior? |
Alberto SantiniYUI Contributor
|
Hello David.
I think you get the following bug: http://yuilibrary.com/projects/yui2/ticket/2527990 Regards, IceBox |
|
Yep, it certainly looks like it.
Now here's the question: Once that bug is resolved will I be able to have a carousel with data populated like this: XXXX_______XXXX___XXXXX or can it only be continuous: XXXXXXXXXXXXXXXXX ? Thanks David |
Alberto SantiniYUI Contributor
|
Hello David.
I think you cannot leave holes, but you might use a "special" item to create separations between group of items, if I understood correctly your needs. Regards, IceBox |
|
Yeah, but the problem is that my data set is 1500 items. It takes nearly 5 minutes for the carousel to load that. If I could leave holes I could load the front and the back and then it would only be 100 items.
Any suggestions? |
|
Any idea when 2.9 will be released?
|
| Page 1 of 2 | [ 11 posts ] | Go to page 1, 2 Next |
| 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