Skip to content

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

@reubenturk-ga

Description

@reubenturk-ga

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions