Hi,
I'm trying to build a nice widget-wrapper around the YUI-component lib.
Things are nice and smooth except for one thing: the components can get
effects as arguments, basically a constructor and some arguments.
Now this is what the generated JS looks like:
resizepanelwin = new YAHOO.widget.Panel("resizepanelwin",
{"visible": false,
"effect": {"duration": 0.25, "effect":
"YAHOO.widget.ContainerEffect.FADE"},
"constraintoviewport": true,
"draggable": true, "width": "23em",
"modal": false, "close": true,
"underlay": "none", "fixedcenter": true} );
as you can see, the effect.effect is a string. Yet it should be rendered
without quotes, so that the eval will evaluate it to the
constructor/callable.
Any suggestion on how to make that happen?
Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---