Adding buttons to panel dynamically <p>ExtJS 4</p> <p>How to add a button to a panel (dynamically) as if in the buttons property? In ExtJS 3, we have <code>panel.addButton()</code> but didn't find any such function in ExtJS 4. I tried <code>panel.addDocked()</code> too but it didn't work.</p>