In an ExtJS 6 classic mode application I am trying to configure a menu having both regular items and items with input fields. The idea is to let the user click normal item and then display an item where text can be edited. This is how it looks
items: [{ text : '<b>Add to Favorites</b>', iconCls : 'ico-new', hideOnClick : false, handler : 'onAddToFavorites', hidden : false, bind : { hidden : '{isEditing}' } },{ xtype : 'textfield', iconCls : 'ico-new', // ignored by ExtJS - why? selectOnFocus: true, anchor : '100%', hidden : true, bind : { hidden : '{!isEditing}' } }]; It works fine, however iconCls property is entirely ignored for items with xtype:'textfield'. Actually, it does not seem to affect anything but regular items.
So the question is how to make ExtJS display menu icon for items containing input fields.
iconCls. Search forclsin the documentaiton, there are many possibilities, try which works out for you.cls,fieldCls,userClsetc. These all add extra classed to different components. Filter for "cls" underFilter membersin the documentation page I linked.