开发者

remove object added by this.add() - Sencha Touch

I am adding a carousel to my main Panel.

What I do is I create myCarousel with a toolbar and then I do:

this.add(myCarousel);
this.doLAyout();

this works fine, but later I need to redo myCarousel, for this I want to remove myCarousel from my main panel and then add it again and reder it.

I have tried

this.removeAll()

but it says that 'this.removeAll()' is undefined, even though when I inspect the item I can see that it has a removeAll() function listed in the proto

Is there a different way I should ad开发者_开发技巧d/remove myCarousel object?

Thank you in advance


I believe it should be

removeAll(true)

rather than

removeAll()
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜