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

cannot set palette #17

Closed
Kazem-ma79 opened this issue Aug 4, 2019 · 3 comments
Closed

cannot set palette #17

Kazem-ma79 opened this issue Aug 4, 2019 · 3 comments

Comments

@Kazem-ma79
Copy link

Hi,
Please make a way to set palette dynamically from code side.
I'm trying to set it with jqAttr but it's not working.
Tnx for this useful tool.

narsenico added a commit that referenced this issue Sep 5, 2019
@valentinbdv
Copy link

+1, do you when it will be available? It's a great color picker @narsenico

narsenico added a commit that referenced this issue Sep 29, 2019
@narsenico
Copy link
Owner

v1.2.0
The property palette is now editable

const a = AColorPicker.createPicker({
        palette: ['red', 'yellow']
});
a.palette = ['red', '#00ff00', 'rgb(0, 0, 255)'];

@valentinbdv
Copy link

It works like a charm! Thanks a lot ;)

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

No branches or pull requests

3 participants