mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Improve IonicActionSheetOptions
Ref: http://ionicframework.com/docs/api/service/$ionicActionSheet/
This commit is contained in:
@@ -84,13 +84,19 @@ class IonicTestController {
|
||||
|
||||
private testActionSheet(): void {
|
||||
var closeActionSheetFn: ()=>void = this.$ionicActionSheet.show({
|
||||
buttons: [],
|
||||
buttons: [{ text: 'A button' }],
|
||||
titleText: "titleText",
|
||||
cancelText: "cancelText",
|
||||
destructiveText: "destructiveText",
|
||||
cancel: ()=>{ console.log("cancel"); },
|
||||
buttonClicked: ()=>{ console.log("buttonClicked"); },
|
||||
destructiveButtonClicked: ()=>{ console.log("destructiveButtonClicked"); },
|
||||
buttonClicked: (index)=>{
|
||||
console.log("buttonClicked");
|
||||
return index === 0;
|
||||
},
|
||||
destructiveButtonClicked: ()=>{
|
||||
console.log("destructiveButtonClicked");
|
||||
return false;
|
||||
},
|
||||
cancelOnStateChange: true,
|
||||
cssClass: "cssClass"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user