jquery-gradient-picker icon indicating copy to clipboard operation
jquery-gradient-picker copied to clipboard

How to reset gradient picker?

Open nordkite opened this issue 9 years ago • 1 comments

Thanks for the plugin. But I have a question. How can I reset gradient picker on button click? I tried this

$( "#reset" ).click(function(e) {
            e.preventDefault();
            $("#grad_picker1").gradientPicker({
                controlPoints: ["blue 0%", "yellow 100%"]
            });
});

But it creates new gradient picker.

nordkite avatar Sep 03 '15 12:09 nordkite

There isn't an option to reset it at the moment but that is something we should definitely add On Sep 3, 2015 8:24 AM, "KirillRyzhkov" [email protected] wrote:

Thanks for the plugin. But I have a question. How can I rest gradient picker on button click? I tried this

$( "#reset" ).click(function(e) { e.preventDefault(); $("#grad_picker1").gradientPicker({ controlPoints: ["blue 0%", "yellow 100%"] }); });

But it creates new gradient picker.

— Reply to this email directly or view it on GitHub https://github.com/tantaman/jquery-gradient-picker/issues/6.

tantaman avatar Sep 04 '15 12:09 tantaman