How to use array for button text value in actionsheet controller ionic 5

Hi i want to create actionsheet like this but with 1000 number of button. how can i use loop iteration for text value in buttons…instead of create 1000 button and set text:1-1000
thanks so much

Action Sheets are generated in typescript code, so why you just use a loop here?

bzw, i can’t image a case where this is the right UI. If you want a user to select a numer between 1 and 1000, i would rather use a sinple numer input, as it can cause useres to need to scroll a lot…

1 Like