So, I have my component (which might be a combobox, textfield etc), what I want it's to change its style (put his borders blue) when I trigger an event.
So this is my event:
//input is the component itself
changeComponents:function (input) {
...
input.border = me.border;
input.style = me.style;
input.updateLayout();
...
}
For some reason, when I trigger that function the layout won't update.
I used that exact code on:
input.on('afterrender', function(){
...
input.border = me.border;
input.style = me.style;
...
}
And it works, so I would like to know what is happening and why it doesn't work.
In ExtJs docs provide method to set style for any component. You can refer ExtJs docs
I have create small demo to show you, how it work. Sencha fiddle example