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

Allow HTML in label #68

Closed
pontikis opened this issue Dec 18, 2020 · 3 comments
Closed

Allow HTML in label #68

pontikis opened this issue Dec 18, 2020 · 3 comments

Comments

@pontikis
Copy link

Hello, thanks for this great plugin!

Is there a way to use HTML in "label"? Thanks

ksnip_20201218-230118

@kraaden
Copy link
Owner

kraaden commented Dec 18, 2020

Yes, you can use render function for that:

render: function(item, value) {
    ...
    var element = document.createElement("div");
    element.innerHTML = "your html";
    return element;
}

@pontikis
Copy link
Author

Thank you!

@pontikis
Copy link
Author

Yes, it works! Thanks again.

ksnip_20201219-000416

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

No branches or pull requests

2 participants