Skip to content

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

@MCiocio

Description

@MCiocio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions