-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
34 lines (29 loc) · 702 Bytes
/
Copy pathscript.js
File metadata and controls
34 lines (29 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
angular.module('ionicApp', ['ionic'])
.controller('AppCtrl', function ($scope, $ionicActionSheet) {
$scope.showActionsheet = function () {
$ionicActionSheet.show({
titleText: 'ActionSheet Example',
buttons: [
{
text: 'Share'
},
{
text: 'Move'
},
],
destructiveText: 'Delete',
cancelText: 'Cancel',
cancel: function () {
console.log('CANCELLED');
},
buttonClicked: function (index) {
console.log('BUTTON CLICKED', index);
return true;
},
destructiveButtonClicked: function () {
console.log('DESTRUCT');
return true;
}
});
};
});