This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
setLimits()
Karl edited this page Apr 18, 2018
·
10 revisions
Quickly sets the limits for the handles.
The instance will automatically set the value to within the limits should the current one be outside of them.
Pass an object with the min
and/or max
properties to set the limits for the handle.
slider.setLimits({
min: 10,
max: 90
});
Pass an array of objects (one for each handle) with the min
and/or max
properties to set the limits for the handle.
slider.setLimits([
{
min: 10,
max: 40
}, {
min: 60,
max: 90
},
]);