Adding items to a Sencha Tab panel dynamically
How can I add i开发者_如何学运维tems to a Sencha Tab Panel in runtime. I used add() function but it is not working?
Thanks Arun A G
How are you invoking add()? Can you edit your post to include the code in question?
You can also do something like this...
Ext.apply(myTabPanel, {
items: [
item1,
item2,
item3
]
});
Is this what you're looking for?
Thanks to all, those who replied and those who viewed .
The problem is solved with the add() method itself. Actually I was using it in wrong format ie myTab.items.add(newItem);
You just have call the method add() within myTab's scope. ie myTab.add(newItem);
精彩评论