iOS7+ style actionsheet service for angular
bower install angular-ios-actionsheet
- include
angular-ios-actionsheet.js
andangular-ios-actionsheet.css
in you html - include
angular-ios-actionsheet
in you angular dependencies - inject
iosActionSheet
in you angular app
Array.<buttonObject | Array.<buttonObject>>
buttonObject keys:
-
text, string
-
color, boolean
-
bold, boolean
-
disable, boolean
-
label, boolean
-
onClick, function, a data object which contains index, parentIndex and button will be passed in
an example of buttonObject
{ text: 'button', color: true, bold: true, disable: false, label: false, onClick: function(data){ // data.index // data.parentIndex // data.button } }
when label or disable is true, the button can't be clicked
MIT