Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add icon for edit and delet to the items? #475

Closed
SaeedSoltoon opened this issue Jan 23, 2015 · 4 comments
Closed

how to add icon for edit and delet to the items? #475

SaeedSoltoon opened this issue Jan 23, 2015 · 4 comments
Labels

Comments

@SaeedSoltoon
Copy link

hi
could you please tel me how to add icon for edit and delete to the options?
i use the "i" tag inside each "option" tag. but nothings added.

@davidstutz
Copy link
Owner

I will have a look, this should be possible!

@davidstutz davidstutz added the bug label Feb 12, 2015
@davidstutz
Copy link
Owner

You can adapt the optionLabel function as follows (added to FAQ):

optionLabel: function(element){
    return $(element).attr('label') || $(element).html();
},

davidstutz added a commit that referenced this issue Mar 1, 2015
@bertdewit
Copy link

Hi,
I don't get this working. How can I get a bootstrap glyphicon in the options?

@devmi
Copy link

devmi commented Jul 31, 2017

Perhaps you may also set the enableHTML config to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants