It illustrates the limit data in slider.
import * as React from 'react';
import { SliderComponent, ColorRangeDataModel, TicksDataModel, LimitDataModel } from '@syncfusion/ej2-react-inputs';
export default class App extends React.Component<{}, {}> {
public ticks: TicksDataModel = {
placement: "After",
largeStep: 20,
smallStep: 10,
showSmallTicks: true
};
public minRangeLimits: LimitDataModel = { enabled: true, minStart: 10, minEnd: 40, maxStart: 50, maxEnd: 80 };
render() {
return (
<div id='container'>
<div className='wrap'>
<SliderComponent type='Range' id='slider' value={[30,70]}
ticks={this.ticks} limits ={this.minRangeLimits}/>
</div>
</div>
);
}
}
boolean
It is used to enable the limit in the slider.
Defaults to false
boolean
It is used to lock the second handle.
import * as React from 'react';
import { SliderComponent, ColorRangeDataModel, TicksDataModel, LimitDataModel } from '@syncfusion/ej2-react-inputs';
export default class App extends React.Component<{}, {}> {
public ticks: TicksDataModel = {
placement: "After",
largeStep: 20,
smallStep: 10,
showSmallTicks: true
};
public minRangeLimits: LimitDataModel = { enabled: true, minStart: 10, minEnd: 40, maxStart: 50, maxEnd: 80, endHandleFixed: true };
render() {
return (
<div id='container'>
<div className='wrap'>
<SliderComponent type='Range' id='slider' value={[30,70]}
ticks={this.ticks} limits ={this.minRangeLimits}/>
</div>
</div>
);
}
}
Defaults to false
number
It is used to set the maximum end limit value.
Defaults to null
number
It is used to set the maximum start limit value.
Defaults to null
number
It is used to set the minimum end limit value.
Defaults to null
number
It is used to set the minimum start limit value.
Defaults to null
boolean
It is used to lock the first handle.
import * as React from 'react';
import { SliderComponent, ColorRangeDataModel, TicksDataModel, LimitDataModel } from '@syncfusion/ej2-react-inputs';
export default class App extends React.Component<{}, {}> {
public ticks: TicksDataModel = {
placement: "After",
largeStep: 20,
smallStep: 10,
showSmallTicks: true
};
public minRangeLimits: LimitDataModel = { enabled: true, minStart: 10, minEnd: 40, startHandleFixed: true };
render() {
return (
<div id='container'>
<div className='wrap'>
<SliderComponent type='Range' id='slider' value={[30,70]} tooltip={this.tooltip}
ticks={this.ticks} limits ={this.minRangeLimits}/>
</div>
</div>
);
}
}
Defaults to false