PDA

View Full Version : triggerClass and triggerConfig not working



pinidbest
10 Jul 2012, 3:29 AM
Hi,
I have a autocomplete combo and I want to change the trigger (arrow) to a search icon
I tried using

triggerClass: 'x-form-search-trigger',Or a class I have createdI also tried
triggerConfig: { tag: "img", src: Ext.BLANK_IMAGE_URL, cls: " x-form-search-trigger " }It also did not helpAny ideas?

sword-it
10 Jul 2012, 3:46 AM
Hi,
If you want to change the trigger icon, you must define the 'triggerCls' config of the combo instead of triggerClass. :)
So add the below config to your combo to change the trigger icon to a search icon -


triggerCls: 'x-form-search-trigger'

pinidbest
10 Jul 2012, 4:06 AM
They had a mistake in the documentation