更新时间:2023-11-26 12:47:46
如果您还没有准备好使用SASS进行主题化,请查看sencha文档中的按钮配置示例:
If you are not ready for theming with SASS just yet take a look at this example of button configs from the sencha docs:
Stanadalone Example page: http://docs.sencha.com/extjs/4.1.3/extjs-build/examples/button/button.html
CSS that adds customized images to the buttons: http://docs.sencha.com/extjs/4.1.3/extjs-build/examples/button/button.css
JS : http://docs.sencha.com/extjs/4.1.3/extjs-build/examples/button/button.js
基本上,这表明如何使用按钮配置上的iconCls
属性以及简单的CSS类向按钮添加所需的图像.
Essentially this shows how to use iconCls
property on the button config along with a simple CSS class to add desired image to your button.