Icon for sencha touch tabpanel tabs

帅比萌擦擦* 提交于 2019-12-04 16:48:29

You need to add an iconCls property to each of the items within your TabPanel (HomeViewport, AboutViewport, etc).

There are a handfull of icons compiled into the default theme, but there are many more in the pictos directory (found at $touch/resources/themes/images/default/pictos/). The iconCls name will be the same as the filename without the .png.

If you try and use an image that is not in the default theme you will just get a blank square, but you can add more by editing the theme's .scss file and adding line to include the image like:

@include pictos-iconmask('refresh5');  // includes pictos/refresh5.png

For help changing the theme see An introduction to Theming Sencha Touch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!