Hey Elod,
I have some implementaion query for infinte wheel.
Below is my OLD implementaion which I have to convert NEW implementaion.
See below code, Created data from getAmountWheelData() method
How to handle below things in infinite ‘data’ in function.
-
START VALUE of WHEEL ?? - User Defined
-
STEP OF WHEEL ? - User Define
-
WHEEL VALUE SHOULD DESCENDING - [100-99-98-97…]
-
NEGATIVE VALUE NOT REQUIRED.
wheels: [ [{ //OLD IMPLEMENTATION data: this.getAmountWheelData(), label: 'OLD Amount', },{ // An infinite wheel // How can I make my requirement here? label: 'NEW Amount', data: function (i) { value: i, display: i.toString(), }, getIndex: function (value) { return value; } }] getAmountWheelData() { // This is currunt implementation which need to change. let amountArray :Array<{display: string, value: any}>; let amountMinimum = 0; // Will get from API response let amountMaximum = 1000000; // This is not needed, Since have to implement infinite wheel let step = 100; // Will get from API reponse amountArray = []; for (let i = amountMinimum; i <= amountMaximum; i+= step) { amountArray.push({display:i.toString(), value:i}); } return amountArray.reverse(); }
// Might be my question is not clear to you… Can we discuss over chat/call if not understood.