LimitData

12 Sep 20253 minutes to read

It illustrates the limit data in slider.

 <ejs-slider [value]="minValue" [min]="min" [max]="max" [tooltip]="tooltip" [ticks]="ticks" [type]="minType" [limits]="minRangeLimits"></ejs-slider>
import { Component } from "@angular/core";

@Component({
    selector: "my-app",
    templateUrl: "app/template.html",
    styleUrls:["index.css"],
})
export class AppComponent {
    public tooltip: TooltipDataModel = {
        placement: "Before",
        isVisible: true
    };
    public ticks: TicksDataModel = {
        placement: "After",
        largeStep: 20,
        smallStep: 5,
        showSmallTicks: true
    };
    public minType: SliderType = "MinRange";
    public min: number = 0;
    public max: number = 100;
    public minRangeLimits: LimitDataModel = { enabled: true, minStart: 10, minEnd: 40 };
}

Properties

enabled boolean

It is used to enable the limit in the slider.

Defaults to false

endHandleFixed boolean

It is used to lock the second handle.

 <ejs-slider [value]="minValue" [min]="min" [max]="max" [type]="minType"
    [limits]="minRangeLimits"></ejs-slider>
import { Component } from "@angular/core";

@Component({
    selector: "my-app",
    templateUrl: "app/template.html",
    styleUrls:["index.css"],
})
export class AppComponent {
    public minType: SliderType = "MinRange";
    public min: number = 0;
    public max: number = 100;
    public minRangeLimits: LimitDataModel = { enabled: true, minStart: 10, minEnd: 40, endHandleFixed: true };
}

Defaults to false

maxEnd number

It is used to set the maximum end limit value.

Defaults to null

maxStart number

It is used to set the maximum start limit value.

Defaults to null

minEnd number

It is used to set the minimum end limit value.

Defaults to null

minStart number

It is used to set the minimum start limit value.

Defaults to null

startHandleFixed boolean

It is used to lock the first handle.

 <ejs-slider [value]="minValue" [min]="min" [max]="max" [type]="minType" [limits]="minRangeLimits"></ejs-slider>
import { Component } from "@angular/core";

@Component({
    selector: "my-app",
    templateUrl: "app/template.html",
    styleUrls:["index.css"],
})
export class AppComponent {
    public minType: SliderType = "MinRange";
    public min: number = 0;
    public max: number = 100;
    public minRangeLimits: LimitDataModel = { enabled: true, minStart: 10, minEnd: 40, startHandleFixed: true };
}

Defaults to false