Modifying label for the color picker #4088
Unanswered
HashimHaider
asked this question in
Q&A
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi guys,
For the built-in 'color' trait, I'd like to modify the rendered label's text. Right now, the name of the 'property' property is used as the label.
Is there perhaps a 'title' or 'label' property that I could set which would then set the color picker's label?
An example of what I want to do:
`COLOR_PICKER = {
property: 'color',
type: 'color',
label: 'Select a color' // This is ignored. The value inside 'property' is rendered as a label.
}
styleManager.addSector('test', {
name: 'Test',
open: true,
properties: [COLOR_PICKER]
}, {at: 0});`
TIA!
Beta Was this translation helpful? Give feedback.
All reactions