I have a statusbar in my grid. Now I need to add a icon on the statusbar and text beside that icon. But i can set the text onstatusbar not icon. Can anyone please help me on this ?! Here is my code below :
weekSelectionChange: function(model, records){
var record = records[0];
if(record){
var activeFlag = record.data.activeFlag,
statuslabel = Ext.getCmp('showgridstatusbar'),
cashPayLabel = Ext.getCmp('cashPayLabel'),
lateFeeLabel = Ext.getCmp('lateFeeLabel'),
icon = '${resource(dir: "images", file: "TIC01001.png")}',
status = activeFlag ? '<span style="color:black;font-weight:bold">Installment Status » </span> <span style="color:green;font-weight:bold">Paid</span>' : '<span style="color:black;font-weight:bold">Installment Status » </span> <span style="color:red;font-weight:bold">Due !</span>';
statuslabel.setIcon(icon);
}
}