Added customClass attribute to node using which value-labels styles can be customized #277
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I came across requirement of having customizable different colors for each value-label in multiselect.
Currently the value-label slot allows to change the label but the background color and other styles are defined from the parent of that slot.
This configuration will allow developers to add custom styles to value-labels in the node attributes itself.
You can define the styles for value-label in any CSS classes then
You can apply the styles by assigning those class values in customClass key in any node
Note: This is an optional attribute, not providing this value in any node will follow the default styles
Preview