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

Position failed #270

Closed
4URGB opened this issue Jan 20, 2019 · 1 comment
Closed

Position failed #270

4URGB opened this issue Jan 20, 2019 · 1 comment
Labels

Comments

@4URGB
Copy link

4URGB commented Jan 20, 2019

Hi,

first of all - great script!

I trie to work with it, but setting the position to another value failed.

<input data-position="bottom left" ...> - wont work

by ini the minicolors

position: $(this).attr('data-position') || 'bottom right',  - wont work too

Also i use

format: $(this).attr('data-format') || 'rgba',

and

<input data-format="rgba" ...>

but i received a hex value in the input field!?

It always display the left bottom classes.

What i do wrong?

@claviska
Copy link
Owner

Config via data attributes are not supported by minicolors unless you initialize it with them as in the demo:

https://github.com/claviska/jquery-minicolors/blob/master/index.html#L69-L77

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

No branches or pull requests

2 participants