我想将图标添加到我的工具栏(任意 - 不与按钮关联)。将图标添加到Extjs工具栏
在我的CSS我定义URL是这样的:
.myCoolLookingIcon {
background-image: url('../ext-theme-gray/images/grid/columns.gif');
}
而且,如果我用iconCls设置按钮图标正常工作。
我想在一个标签或图像
该图标我曾尝试:
xtype: 'label',
iconCls: 'myCoolLookingIcon '
和
xtype: 'image',
html: '<img class="myCoolLookingIcon "/>'
但是这似乎并没有在这两种情况下工作。
你不能只是配置配置。标签没有'iconCls'配置。 –