jquery-asColorPicker icon indicating copy to clipboard operation
jquery-asColorPicker copied to clipboard

Is there a way to limit number of markers?

Open MCiocio opened this issue 4 years ago • 0 comments

Checklist

  • [ ] I'm using version [0.4.4]
  • [ ] My browser is: Google Chrome 87.0.4280.88

Description

Wonderful plugin! But I have a question: I cannot find if there is a way to limit the number of markers to add. I should need to set only 2 markers

How can we reproduce this bug?

my code

var picker = $("#backgroundGradient");
picker.asColorPicker({
    mode:'gradient',
    hideInput:false,
});
picker.asColorPicker('val', "linear-gradient(to top right, rgb(255, 255, 255) 0%, rgb(0, 0, 0) 100%)");

MCiocio avatar Dec 17 '20 12:12 MCiocio