PDA

View Full Version : method for setting hideTrigger property of combo



nayak14
11 Nov 2009, 10:06 PM
I couldnt find any way to dynamically set hideTrigger property of a combo.
Any workaround for this?

Regards,
Harshad

dreas
12 Jan 2010, 5:40 AM
This should do the job though it actually doesn't change the hideTrigger property. It's just calling setDisplayed() exactly how it's done in the onRender of TriggerField when the hideTrigger property is set to true.


Ext.override(Ext.form.TriggerField, {
displayTrigger: function(displayTrigger) {
this.el.next('img').setDisplayed(displayTrigger);
}
});Regards,
Andreas

Animal
12 Jan 2010, 6:05 AM
What about resizing it?