-
Notifications
You must be signed in to change notification settings - Fork 354
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
Possibility to put HEX in and get only the HEX out (no other color formats) #185
Comments
If i undersand your question, then you can do this:
and listen to it and get the value from it:
|
but if you have multiple color pickers on one page, that's not going to help, because every picker would need his own input method |
Uniforming input and output format seems like a common request. Gonna think about it. But this is a breaking change, so if it takes not much efforts, will implement in 3.0 version. |
Yes please 😩 |
Consider vue-select`s example in this case, they use reduce callback to pass only needed data to v-model |
I was troubled with the same problem. data() {
return {
myHex: "#C6E1B880",
}
} <chrome-picker :value="myHex" @input="c => myHex = c.hex8" /> It is a pity that |
You can also write |
As the title says. When I say
myHex: '#FF0000'
, and use that as the v-model, I expect the updatedmyHex
variable to be a HEX code, not an object containing a HEX code (and other color formats).Is this possible?
The text was updated successfully, but these errors were encountered: