random-name-picker icon indicating copy to clipboard operation
random-name-picker copied to clipboard

Questions about maximum items supported by this app

Open juanchi opened this issue 2 years ago • 2 comments

Hi, excellent work!!!, I have two question, first one: numbers can be use instead of names? Second one: there is a limit on how many entries you could have?

juanchi avatar Sep 27 '23 10:09 juanchi

@juanchi Glad you like my work.


To answer your first question, my answer would be yes, but not in a very user friendly way. This app was designed to pick random names, so the input box was designed to receive inputs line by line. So if you want to display number 1 - 5 in the spinner, you will need to input something like:

1
2
3
4
5

For question 2, Short answer is "Yes and no". There isn't a hard limit on how many numbers you can input to initialize the lucky draw app, however it was found that displaying and animating large amount of items on screen will cause the app to be laggy or even breaks the animation, that's why the app is design to show only part of the names at a time.

That means, you can have unlimited number of items, but each spin will only show some random items from the remaining items on the reel.

Currently, the maximum items display on the spin is 40. If you wish to show more, you are always welcome to fork this repository and do your own customization: https://github.com/icelam/random-name-picker/blob/9357a60eb9fa6a3f7e7d0380f85099dea2bf2e28/src/assets/js/app.ts#L45


Hope this answer your questions.

icelam avatar Sep 29 '23 16:09 icelam

@juanchi Glad you like my work.

To answer your first question, my answer would be yes, but not in a very user friendly way. This app was designed to pick random names, so the input box was designed to receive inputs line by line. So if you want to display number 1 - 5 in the spinner, you will need to input something like:

1
2
3
4
5

For question 2, Short answer is "Yes and no". There isn't a hard limit on how many numbers you can input to initialize the lucky draw app, however it was found that displaying and animating large amount of items on screen will cause the app to be laggy or even breaks the animation, that's why the app is design to show only part of the names at a time.

That means, you can have unlimited number of items, but each spin will only show some random items from the remaining items on the reel.

Currently, the maximum items display on the spin is 40. If you wish to show more, you are always welcome to fork this repository and do your own customization:

https://github.com/icelam/random-name-picker/blob/9357a60eb9fa6a3f7e7d0380f85099dea2bf2e28/src/assets/js/app.ts#L45

Hope this answer your questions.

Thanks!!!!!!

juanchi avatar Sep 30 '23 18:09 juanchi