Unanswered: Can different tabs have single(common) controller?
Unanswered: Can different tabs have single(common) controller?
Can different tabs of a tab panel have a single(common) controller?
Actually i am generating new tabs in my tab panel on click of a button , these tabs need to be mapped to a controller . All these new tabs have common functionality so can i use same controller or generate new controllers dynamically for each tab at the time when new tabs are getting generated?
Yes, the trick is to use itemId's (itemId's are relative to the component) and when you provide an action you then getCurrentTab() to grab a reference to which tab you are in.
Check out SenchaWorld.com for articles, screencasts, conference videos and more.