Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about maximum items supported by this app #8

Open
juanchi opened this issue Sep 27, 2023 · 2 comments
Open

Questions about maximum items supported by this app #8

juanchi opened this issue Sep 27, 2023 · 2 comments
Labels
enquiry Questions about this app

Comments

@juanchi
Copy link

juanchi commented Sep 27, 2023

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?

@icelam icelam changed the title 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? Questions about maximum items supported by this app Sep 29, 2023
@icelam
Copy link
Owner

icelam commented Sep 29, 2023

@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:

const MAX_REEL_ITEMS = 40;


Hope this answer your questions.

@juanchi
Copy link
Author

juanchi commented Sep 30, 2023

@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:

const MAX_REEL_ITEMS = 40;

Hope this answer your questions.

Thanks!!!!!!

@icelam icelam added the enquiry Questions about this app label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enquiry Questions about this app
Projects
None yet
Development

No branches or pull requests

2 participants