Hello,
I want to implement infinite wheel scroller on my angular project.
How can I perform validation to disable the value of infinite wheel scroller.
Can anyone give some implementation on infinite wheel validation to disable the value
this.scrollerOptions = {
showLabel: true,
display: 'inline',
wheels: [
[{
.....
},
{ // An infinite wheel
label: 'Label 4',
circular: false,
data: function (i) {
return {
value: i,
display: i.toString()
}
},
getIndex: function (value) {
return value;
}
}]
],
validate: (event, inst) => {
const disabledInfiniteWheelArray = [];
// TO-DO
// HOW to DO Validation based on some selection of other wheel
// I want to disable some entry of infinite wheel scroller
return {
disabled: [ [], disabledInfiniteWheelArray]
};
}
}
//https://docs.mobiscroll.com/angular/scroller#opt-wheels - to Create infinite wheel