nurhadijogja
31 Oct 2012, 2:26 AM
Hi all,
I have a widget named 'mywidget'. When I call this widget and want to change the title property using Ext.widget, it works fine. but when I want to change iconCls property, it can't work. can anyone tell me why did it happen?
My code:
Ext.widget('mywidget', {
title: "new title"
});
work fine..
Ext.widget('mywidget', {
iconCls: "someicon"
});
not working.. the 'someicon' class not applied and icon not shown
I have a widget named 'mywidget'. When I call this widget and want to change the title property using Ext.widget, it works fine. but when I want to change iconCls property, it can't work. can anyone tell me why did it happen?
My code:
Ext.widget('mywidget', {
title: "new title"
});
work fine..
Ext.widget('mywidget', {
iconCls: "someicon"
});
not working.. the 'someicon' class not applied and icon not shown