【发布时间】:2011-07-20 02:54:28
【问题描述】:
我可以在 TabPanel 的停靠项中隐藏项目,但我想暂时隐藏整个停靠栏,因为工具栏本身仍然占用空间并且其余内容不会填满屏幕。
到目前为止,我确实喜欢这样:
myApp.views.productList.dockedItems.items[0].removeAll(true);
myApp.views.productList.doComponentLayout();
或者:
myApp.views.productList.getComponent('search').removeAll(true);
myApp.views.productList.doComponentLayout();
但两者都不会删除 dockedItems 工具栏本身。
我什至尝试单独和集体地给 dockedItems 一个id: 来删除整个组件,但没有运气。我还尝试将有问题的工具栏从停靠的项目中移出并移到包含面板的 items: 属性中,但这会破坏我目前不想更改的应用程序中的其他内容。
关于如何做到这一点的任何线索?
【问题讨论】:
标签: javascript sencha-touch extjs