Skip to content

[combobox]: how to style matching text segments differently? #1628

Answered by LFDanLu
stefanprobst asked this question in Q&A
Discussion options

You must be logged in to vote

@stefanprobst We don't support something like that out of the box, and it would be difficult to do due to the caching behavior of our collection components + the assumption that each item passed to the collection is immutable. Perhaps it can be done if you do an Array map instead of passing the items directly to the ComboBox, and you modify this array of items every time the input value changes so that the text value has the <b> applied to correct places.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@devongovett
Comment options

@stefanprobst
Comment options

Answer selected by devongovett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants