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?
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?