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

Is there a way to limit number of markers? #16

Open
2 tasks
MCiocio opened this issue Dec 17, 2020 · 0 comments
Open
2 tasks

Is there a way to limit number of markers? #16

MCiocio opened this issue Dec 17, 2020 · 0 comments

Comments

@MCiocio
Copy link

MCiocio commented Dec 17, 2020

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%)");
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

1 participant