|
Title: Combobox record icons [solved] Post by: devnull on December 07, 2015, 06:39:30 PM I have added a icon to the combo records which works just fine, but how can I show the icon when the record is selected ?
Code: $('#xxx').combobox({Title: Re: Combobox record icons Post by: devnull on December 07, 2015, 08:16:19 PM Hi;
I have managed to get it to work using the onSelect event, but how can I do this without using up the onSelect event as I would like to make it a global feature that can be applied to any combobox ? Code: $('#xxx').combobox({Title: Re: Combobox record icons Post by: stworthy on December 08, 2015, 11:54:30 PM You can override the $.fn.combobox.defaults to make all combobox components get this feature.
Code: <style> Code: $('#cc').combobox({Title: Re: Combobox record icons Post by: devnull on December 09, 2015, 02:24:12 AM Thanks, but that's not really what I am after, as if I do that then the onSelect event will not be available to do other more important things.
Is there a way of achieving this WITHOUT using the onselect() event and preferably not using the formatter() as well ? I am looking to add this as a global configurable option whilst still allowing the combobox to perform normally. Title: Re: Combobox record icons Post by: stworthy on December 13, 2015, 06:28:19 PM The 'showItemIcon' property will be added to support this feature.
Code: $('#cc').combobox({Make sure to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.4-patch.zip. Title: Re: Combobox record icons Post by: devnull on December 13, 2015, 10:44:54 PM That's great, I was not expecting it to be integrated as a standard feature, thanks so much.
Will this plugin also work in 1.4.1 ? Title: Re: Combobox record icons Post by: stworthy on December 13, 2015, 11:45:29 PM This patch only works for version 1.4.4
Title: Re: Combobox record icons Post by: devnull on December 19, 2015, 02:12:50 AM Understood, thanks so much
|