How to Use Multiple Coloris Configurations (With and Without Alpha) on the Same Page? #179
Closed
prioritario1971
started this conversation in
General
Replies: 1 comment
-
|
Hi Francesco, for future reference, if you need multiple color pickers with different configuration, you need to use virtual instances. I hope this helps. |
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 everyone,
In my source code I have these two inputs:
and I would like the color picker to generate only RGB HEX values without alpha in the first case, and with alpha in the second.
So, I tried using these two configurations:
However, having two Coloris() calls doesn’t work: there are no JavaScript errors, but the second call overrides the first one, so both inputs end up with the alpha selector (i.e., they both take alpha: true).
Therefore, how can I have multiple different Coloris configurations on the same page?
Thanks for your help.
_francesco
Beta Was this translation helpful? Give feedback.
All reactions