jquery-gradient-picker
jquery-gradient-picker copied to clipboard
How to reset gradient picker?
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.
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.