cordova-plugin-actionsheet icon indicating copy to clipboard operation
cordova-plugin-actionsheet copied to clipboard

Improvement - Consider dinamically option changes

Open derek90 opened this issue 3 years ago • 0 comments

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.

derek90 avatar Aug 11 '20 20:08 derek90