Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat ($ionicActionSheet): pass button object to buttonClicked
Closes #1369. Right now `buttonClicked` accepts only the index of the pressed button that means you have to work with indices to decide which one it is. In case you move buttons around to get better UX, you'd have to be very careful with those indices. It's easier to add `id` property to buttons and simply check for it. Index-agnostic solution is more maintainable and leads to less changes to the code when the buttons order is being changed.
- Loading branch information