PDA

View Full Version : Putting Dialog inside Overlay Container


fthamura
01-24-2007, 02:12 AM
anyoen have experience put the dialog inside YUI Container.

i just working with YUI example, and calling YUI Ext Dialog. because i see that YUIExt and YUI is a project that not inherit, cMIIW.


this is several my code, that still under development.

YAHOO.example.container.panel2 = new YAHOO.widget.Panel("panel2", { width:"300px", visible:false, constraintoviewport:true } );
YAHOO.example.container.panel2.setHeader("<div class='tl'></div><span>Panel #2 from Script</span><div class='tr'></div>");
YAHOO.example.container.panel2.setBody("This is a dynamically generated Panel.");
YAHOO.example.container.panel2.setFooter("<span>End of Panel #2</span>");
YAHOO.example.container.panel2.render(document.body);

YAHOO.example.container.manager = new YAHOO.widget.OverlayManager();
YAHOO.example.container.manager.register([YAHOO.example.container.panel1,
YAHOO.example.container.panel2]);