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

enforceStep allows the values to get outside of the allowed range #372

Open
reubenturk-ga opened this issue Mar 8, 2024 · 0 comments
Open

Comments

@reubenturk-ga
Copy link

If your range is not divisible by the step, then the enforceStep option can allow selection of values outside of the range.

Here's an example: https://stackblitz.com/edit/ngx-slider-range-slider-example-n8npim?file=src%2Fapp%2Fapp.component.ts
Using these options:

  options: Options = {
    floor: 0,
    ceil: 97,
    step: 10,
    enforceStep: true
  };

In that example it is possible select 100 for the high value, either using the arrow keys or with the mouse.

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