PDA

View Full Version : Add Items to Existing Docked Items



chichasonu
22 Dec 2015, 4:35 AM
Hi,
I have a form Panel, where i am initially adding two Buttons in the Tbar using add docked items.
After some business logic, i need to add tow more components to the same toolbar.
Can this be Possible.
Any help on this is really appreciable
Thanks in Advance.

jdkhamba
22 Dec 2015, 5:41 AM
Yes you can access the top toolbar using getDockeComponent:

http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.form.Panel-method-getDockedComponent

Then simply call 'add' on it.

chichasonu
22 Dec 2015, 5:54 AM
Thanks..:) It Worked