PDA

View Full Version : TabPanel 'added' not fired when I call 'add'



bimargulies
25 Jul 2012, 6:59 AM
I have a TabPanel. It has two tabs declared as items, and then later I call add to add another.

A hander for 'added' gets called once for the initial configuration, and not at all after the call to add. I establish the handler in my controller with:



this.control({
'#docTabs': {
added: this.addedTab
}
});


'docTabs' is the id for the entire tab panel.

The reason for all of this is to do some post-processing of the HTML of the added tab. I need to get called back after the HTML is in place in the DOM.

Is there some other handler I should just set on the new tab instead?

Tim Toady
25 Jul 2012, 7:27 AM
added is fired on the tab that is added. add is fired on the container added to.