* @cfg {String} html
* @cfg {String} position (top|bottom) text position default bottom
* @cfg {String} icon show icon instead of number
- * @cfg {Boolean} forceIcon (true|false) true to force show icon..
*
* @constructor
* Create a new NavProgressItem
html : '',
position : 'bottom',
icon : false,
- forceIcon : false,
getAutoCreate : function()
{
var iconCls = 'roo-navigation-bar-item-icon';
-// if((this.forceIcon)){
-// iconCls += ' force';
-// }
-//
-// if(this.icon){
-// iconCls += ' ' + this.icon;
-// }
+ iconCls += ((this.icon) ? (' ' + this.icon) : (' step-number')) ;
var cfg = {
tag: 'li',
cls : iconCls
}
]
- }
+ };
if(this.active){
cfg.cls += ' active';
initEvents: function()
{
this.iconEl = this.el.select('.roo-navigation-bar-item-icon', true).first();
- this.textEl = this.el.select('.roo-navigation-bar-item-text', true).first();
this.iconEl.on('click', this.onClick, this);
-
},
onClick : function(e)