PDA

View Full Version : YAHOO.ext.BorderLayout tab with external content?



zady
25 Oct 2006, 4:24 AM
How can I add a tab with an external file to BorderLayout ?
I am looking for something like at tabpanels for BorderLayout:

var updater = tabPanelItem.getUpdateManager();
updater.setDefaultUrl('external_file.htm');

Thanks!
Dan

jack.slocum
25 Oct 2006, 7:14 AM
In the current debug version the panel itself is created from an element so you could just get that elements update manager:



var mgr = getEl('your-center-element-id').getUpdateManager();
mgr.update(...);


In the latest dev code this functionality is also on the ContentPanel object for convenience.

zady
27 Oct 2006, 12:22 AM
Dear Jack!

Thank you very much, your answer helped a lot! :)
Dan