From 3e5b39f20175fbe16d7439bdfbeb508544782fbf Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Tue, 29 Apr 2014 10:34:31 -0600 Subject: [PATCH] feat($ionicActionSheet): allow html binding Closes #1219 --- js/angular/directive/actionSheet.js | 8 ++++---- js/angular/service/actionSheet.js | 2 +- test/html/actionsheet.html | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/js/angular/directive/actionSheet.js b/js/angular/directive/actionSheet.js index b618b5dd12e..02443d56b4a 100644 --- a/js/angular/directive/actionSheet.js +++ b/js/angular/directive/actionSheet.js @@ -34,14 +34,14 @@ IonicModule '
' + '
' + '
' + - '
{{titleText}}
' + - '' + + '
' + + '' + '
' + '
' + - '' + + '' + '
' + '
' + - '' + + '' + '
' + '
' + '
' + diff --git a/js/angular/service/actionSheet.js b/js/angular/service/actionSheet.js index 05a5b77451e..1b60da41367 100644 --- a/js/angular/service/actionSheet.js +++ b/js/angular/service/actionSheet.js @@ -24,7 +24,7 @@ * // Show the action sheet * $ionicActionSheet.show({ * buttons: [ - * { text: 'Share' }, + * { text: 'Share This' }, * { text: 'Move' }, * ], * destructiveText: 'Delete', diff --git a/test/html/actionsheet.html b/test/html/actionsheet.html index 2ff5d42bf05..a7100c3ee6b 100644 --- a/test/html/actionsheet.html +++ b/test/html/actionsheet.html @@ -136,12 +136,12 @@ $scope.show = function() { $ionicActionSheet.show({ buttons: [ - { text: 'Share' }, - { text: 'Move' }, + { text: 'Share ' }, + { text: 'Move ' }, ], - destructiveText: 'Delete', - titleText: 'Modify your album', - cancelText: 'Cancel', + destructiveText: 'Delete ', + titleText: 'Modify your album ', + cancelText: 'Cancel ', cancel: function() { console.log('CANCELLED'); },