Rob*_*ter 10 extjs extjs4 extjs3
我有一个带有一些组件的ToolBar(TextFields和Buttons),我想在其他组件之前动态添加一个组件(例如TextField).
我尝试tbBar.add(myComponent);没有成功.
任何的想法?
Ste*_*rig 25
你可以使用Ext.container.AbstractContainer.insert:
tbBar.insert(0, myComponent);
Run Code Online (Sandbox Code Playgroud)