开发者

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);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜