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

Improvement - Consider dinamically option changes #72

Open
derek90 opened this issue Aug 11, 2020 · 0 comments
Open

Improvement - Consider dinamically option changes #72

derek90 opened this issue Aug 11, 2020 · 0 comments

Comments

@derek90
Copy link

derek90 commented Aug 11, 2020

Right now, when you want to know what option was selected, you just have the index of it. If you need to remove or add options dinamically, checking some conditions before showing the component, you will need to repeat those conditions to know what the user picked up, because the index of the button won't be enough. An improvement for this could be that the result of the user interaction be wrapped in an object, with the index plus another info like the label text or may be a new field that could be added to the ActionSheetOptions object, to know exactly what the user chose, and not have to guess what options where shown to him to know what the index means.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant