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

onOpen option #15

Open
oskarhane opened this issue Feb 28, 2014 · 0 comments
Open

onOpen option #15

oskarhane opened this issue Feb 28, 2014 · 0 comments
Assignees

Comments

@oskarhane
Copy link

I miss an option that is triggered when the palette is opened. I want that because I have lot of elements that can change color any when an element is selected and this plugins button is clicked I want the $('.simple_color').setColor() to be triggered with the selected elements current color.

As of now, I added an onOpen option and added the call here:

var selectCallback = function (event) {
    if (options.onOpen && (!event.data.container.chooser || !event.data.container.chooser.is(':visible'))) {
      options.onOpen(element);
    }

...
}

I can make a pull request with this change if you'd like.

@recurser recurser self-assigned this Aug 6, 2017
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

2 participants