PDA

View Full Version : using YUI wigets from Ext



werdnareid
29 Apr 2007, 9:57 PM
Hi, is is possible to use the YUI wigets from inside Ext

for example can i do this:


var panel_one = new YAHOO.widget.Panel("panel_one",
{
close:true,
visible:false,
draggable:false
}
);
panel_one.render();

brian.moeskau
30 Apr 2007, 1:37 AM
Yes, as long as you include any additional necessary YUI files in addition to Ext + the YUI utilities.

werdnareid
30 Apr 2007, 4:54 AM
kewl, would i have to replace Ext Ext.onReady().

with YUIinitialization YAHOO.util.Event.addListener(window,'load',YAHOO.example.panels);

tryanDLS
30 Apr 2007, 7:13 AM
No you don't. Ext.onReady does basically the same thing - you're checking whether the document is loaded, not the status of widgets.

werdnareid
30 Apr 2007, 9:33 AM
Thanks..............