Skip to content
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

Auto detect fieldsIndex based on input color format #221

Open
olemarius opened this issue Jan 13, 2021 · 0 comments
Open

Auto detect fieldsIndex based on input color format #221

olemarius opened this issue Jan 13, 2021 · 0 comments

Comments

@olemarius
Copy link

In Chrome component, the fieldsIndex is set to 0 (hex) by default, so when the initial value is not hex it'll still show hex input in the colorpicker.

I'd like to request the following feature:
:formats="['hex','rgb','hsl']" lists which format should be available
:format="rgba" will set fieldIndex to the desired color format
:detectFormat="true" will auto detect format. If value is empty, fall back on :format
forceFormat="true"will take the input format and convert to :format

This feature gives better control of the input/output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant