Reputation: 57650
The following code shows icon for each tab title.
Ext.define("MyAPP.view.Main", {
extend : 'Ext.tab.Panel',
config : {
tabBarPosition : 'bottom', // <--- Line of interest
items : [{
title: "Contacts",
iconCls: "team",
}]
}
});
See sample bellow.
But If I change it to tabBarPosition: 'top'
no icon is seen. Whole style changed.
How can I show icons when tab bar position is top?
Upvotes: 1
Views: 575
Reputation: 1
Just in case this helps to anyone... I don't know why, but sometimes, when one upgrades to 2.1 or earlier, the icons don't automatically show on tabbar docked top (this might be because I'm working with linux). In this case, you have to do the following:
All this, of course, is using the Architect. I'm not a programmer, technically speaking, so you'll have to excuse me if my writting is bad in any sense.
Upvotes: 0
Reputation: 836
Which version of ST are you using? It perfectly works on 2.1.0.
EDIT: Be sure you are using at least Sencha Touch 2.1.0-b1 because top docked toolbar icons has been introduced from that version as you can read in the release notes:
[TOUCH-2] Top docked tab bars can now have icons
Upvotes: 1