Including HTML in option label? #1803
Unanswered
thebordella
asked this question in
Help Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello - I found vue-select looking for something similar to Select2, but for Vue3 (without jQuery as Select2 requires). My one stumbling block with vue-select is whether it can render HTML as the option label. For my application the options in the dropdown need to include custom icons and colors. In Select2 I can pass the option as an HTML element such as " Option Label".
But with vue-select, it is rendering that string "safely" as text rather than as HTML. I looked through the API properties and didn't see any way to override this behavior. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions