ngx-slider
ngx-slider copied to clipboard
Show alert/message to user if tries to drag or select click on bar above max limit value.
i need to show message to user if he tries to select the value above max limt value,
I am updating Max value dynamically the max vaue will be changing fine,but user ties to select above range i should show notification to user that he cannot select above max value.
If he clicks in range it should not show..
ng5-slider [(value)]="currentStepIndex"
(valueChange)="stepValueChange($event)" [options]="options" ></ng5-slider>
options: Options = {
floor: 1,
ceil: 1,
step: 1,
showTicks: true,
showTicksValues: true,
tickStep: 1,
minLimit: 1,
**maxLimit: 1,**
showSelectionBar: true,
};
i will change maxLimit value using below function
someFunc(maxLimit:number ){
const newOptions: Options = Object.assign({}, this.options);
newOptions.maxLimit = maxLimit + 1;
this.options = newOptions;
}