What is the best way to reuse a menu button on different screen's toolbars without duplicating it?
Thanks,
Joud
What is the best way to reuse a menu button on different screen's toolbars without duplicating it?
Thanks,
Joud
You can right click on menu button and 'Promote to class' - that will give you a linkable class
Using linking aka use xtypes
Do drag and drop , create a link http://prntscr.com/h6vspu and http://prntscr.com/h6vsui
Or you mean something different?
Which class is your menu button ? Can you share screenshot or copy the code ?
Here's the code:
Code:xtype: 'toolbar', docked: 'top', layout: { type: 'hbox', pack: 'center' }, items: [ { xtype: 'button', ui: 'action', docked: 'left', menu: { xtype: 'menu', minWidth: '150px', items: [ { xtype: 'menuitem', text: 'New' }, { xtype: 'menuitem', text: 'Open' }, { xtype: 'menuitem', text: 'Edit' }, { xtype: 'menuitem', text: 'Save' } ] } } ]
You can right click on menu button and 'Promote to class' - that will give you a linkable class
Thanks a lot, it worked.