Improve IonicActionSheetOptions

Ref: http://ionicframework.com/docs/api/service/$ionicActionSheet/
This commit is contained in:
Jacques Kang
2015-11-25 21:55:00 +01:00
parent c000d73be4
commit 770a3bb179
2 changed files with 15 additions and 6 deletions
+6 -3
View File
@@ -102,14 +102,17 @@ declare module ionic {
interface IonicActionSheetService {
show(options: IonicActionSheetOptions): ()=>void;
}
interface IonicActionSheetButton {
text: string;
}
interface IonicActionSheetOptions {
buttons?: Array<any>;
buttons?: Array<IonicActionSheetButton>;
titleText?: string;
cancelText?: string;
destructiveText?: string;
cancel?: ()=>any;
buttonClicked?: (index: any)=>any;
destructiveButtonClicked?: ()=>any;
buttonClicked?: (index: number)=>boolean;
destructiveButtonClicked?: ()=>boolean;
cancelOnStateChange?: boolean;
cssClass?: string;
}