This support forum belongs to the YUI2 Wrapper Utility Gallery Module.
YUI2 Wrapper Utility has a bug tracker here: http://github.com/caridy/yui3-gallery/issues
| Page 1 of 2 | [ 12 posts ] | Go to page 1, 2 Next |
|
I'm able to instantiate the progressmeter just fine using this however when I try to add an animation to it via .get - the anim property returns null. I can provide an example if you havent already encountered this.
Basically I took the animation example from the YUI site and tried to wrap it with the YUI3->2 code. The progressmeter shows up, but I'm unable to add an animation to the value change. |
|
I made a version of ProgressBar for YUI3. It lies in my fork, not in YUI3 master:
http://github.com/Satyam/yui3/tree/mast ... ogressbar/ It is native YUI3 and it should work without any wrapping. In that same fork you should be able to find the source and even the same examples as for the 2 version, except the ranking example, which uses the DataTable, not yet available in YUI3. |
|
triptych wrote: I'm able to instantiate the progressmeter just fine using this however when I try to add an animation to it via .get - the anim property returns null. I can provide an example if you havent already encountered this. Basically I took the animation example from the YUI site and tried to wrap it with the YUI3->2 code. The progressmeter shows up, but I'm unable to add an animation to the value change. Hey Andrew, can you provide a link to your example? Or at least a link to the example (from YUI 2) that you're trying to port? I really want to see what is happening here, to see if there is any problem with the wrapper. Best Regards, Caridy |
|
Here's the code I'm trying to use:
Code: var progressBar = new YAHOO.widget.ProgressBar({anim:true}).render('pbContainer'); var anim = progressBar.get('anim'); anim.duration = 3; anim.method = YAHOO.util.Easing.bounceBoth; The bar shows up, but anim is coming back NULL. |
|
That is usually an indication that it couldn't find the Animation utility. If it had found Animation, it would have returned the instance so you can set the animation parameters. If it returns null it is because it couldn't find any Animation object to instance. Have you listed it in the use method?
|
|
Hey Andrew,
Can I see the whole block? remember that animation module in YUI 2 is called "animation", in YUI 3 is called "anim", so, don't get confused during the "use" call. Best Regards, Caridy |
|
I'll bet that's it. I'm trying to use the YUI3 animation with YUI2 module instead of bringing in YUI2's animation. I'll try that.
|
|
Yep, that was the issue - I was trying to use animation in the YUI2 widget, but I had not loaded the YUI2 animation (I had loaded the YUI3 animation upstream). It works fine now!
|
|
Cool, the wrapper is good then
Best regards, Caridy |
|
The wrapper IS good, no question about it. Enhorabuena
|
| Page 1 of 2 | [ 12 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