zhyhero Posted June 22, 2020 Posted June 22, 2020 As the gif showed, unicombobox do not draw fontawesone icon in text area. How to draw or show it ? (the testcase use fontawesone4.7.) FontAwesome47.zip Quote
Sherzod Posted June 22, 2020 Posted June 22, 2020 2 hours ago, zhyhero said: unicombobox do not draw fontawesone icon in text area. Hello, Can you please open a ticket in the support portal? Quote
zhyhero Posted June 22, 2020 Author Posted June 22, 2020 Ticket opened. http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-2221 Quote
Sherzod Posted June 22, 2020 Posted June 22, 2020 8 hours ago, zhyhero said: How to draw or show it ? For your case, a temporary solution: UniComboBox.ClientEvents.ExtEvents -> function afterrender(sender, eOpts) { sender.inputEl.setStyle('padding-left', '20px'); sender.iconFAEl = Ext.dom.Helper.insertBefore(sender.inputEl, { id: sender.id + '_icon', name: sender.id + '_icon', tag: 'span', class: '', style: 'position: absolute; font-size: 1.4em; padding-left: 5px;' }); sender.on('change', function(){ if (sender.selection == null) { sender.iconFAEl.setAttribute('class', '') } }); } function select(combo, record, eOpts) { combo.iconFAEl.setAttribute('class', record.data.icon.iconStr); } Quote
zhyhero Posted June 22, 2020 Author Posted June 22, 2020 Thanks Sherzod ,I will try this on next morning (my time zone). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.