zhyhero Posted June 22, 2020 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2020 Share 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 Link to comment Share on other sites More sharing options...
zhyhero Posted June 22, 2020 Author Share Posted June 22, 2020 Ticket opened. http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-2221 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2020 Share 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 Link to comment Share on other sites More sharing options...
zhyhero Posted June 22, 2020 Author Share Posted June 22, 2020 Thanks Sherzod ,I will try this on next morning (my time zone). Quote Link to comment Share on other sites More sharing options...
zhyhero Posted June 23, 2020 Author Share Posted June 23, 2020 Thanks, it worked. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 23, 2020 Share Posted June 23, 2020 Ok, very good Quote Link to comment Share on other sites More sharing options...
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.