I have Ext.button.Split, for example:
Ext.create('Ext.button.Split', {
renderTo: Ext.getBody(),
text: 'Example',
handler: function() {
alert("Click!");
}
});
Right now it does not have any menu items. I want to set the button not to show arrow if there are no items. How ?
I use EXTJS 4.1 version.
You can set
split: falseto hide arrow. You can also useExt.button.Buttoninstead ofExt.button.Split– when menu is assigned, arrow shows.Example: http://jsfiddle.net/AUE6J/