PDA

View Full Version : Change iconCls on the fly



joefox
10 Sep 2010, 8:25 AM
I have a javascript function that changes the Text and iconCls on my form on the fly.
I can change the Text but the i throw an error when trying to change the iconCls

Any ideas?

var mtr = Ext.ComponentMgr.get('spec_filter_button');
mtr.setText('CHANGED');
mtr.seticonCls('user_edit');

Condor
10 Sep 2010, 11:29 AM
Didn't you already ask this?

It's setIconClass (capital I + Class).