Answered: Tabclosemenu with an icon

Answered: Tabclosemenu with an icon

Hi, guys! I use tabcloseplugin in my application. I've just tried to set "iconCls" property for a particular item in a context menu, which appears on right-click, but to no avail. It seems as if this property is ignored. I wonder whether it is a bug or not?

Not sure off-hand. And it might even be different on different browsers, though I suspect it's not. You can inspect the close tool on a closable panel (or tab in a tabpanel) to see what image (or likely image sprite slice) is used for the close tool.

Not in the constructor, but right in the "createMenu" definition. Your question made me think, that I should put it somewhere else. So, if it should be done in the constructor, please, tell me how it should look like.

Not sure off-hand. And it might even be different on different browsers, though I suspect it's not. You can inspect the close tool on a closable panel (or tab in a tabpanel) to see what image (or likely image sprite slice) is used for the close tool.