mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(actionSheet): update example to have cancel method, which it needs
Closes #1770 Add cancel function to handle cancel clicks in example. Otherwise throws error when used in own code.
This commit is contained in:
3
js/angular/service/actionSheet.js
vendored
3
js/angular/service/actionSheet.js
vendored
@@ -30,6 +30,9 @@
|
||||
* destructiveText: 'Delete',
|
||||
* titleText: 'Modify your album',
|
||||
* cancelText: 'Cancel',
|
||||
* cancel: function() {
|
||||
// add cancel code..
|
||||
},
|
||||
* buttonClicked: function(index) {
|
||||
* return true;
|
||||
* }
|
||||
|
||||
Reference in New Issue
Block a user