Jump to content

Recommended Posts

Posted
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);
} 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...