Skip to content

Commit

Permalink
Merge pull request #8 from EddyVerbruggen/master
Browse files Browse the repository at this point in the history
Allow more than one button/listitem
  • Loading branch information
shiv19 authored Jul 8, 2018
2 parents 375937d + 2d9a0bb commit d791cf4
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,27 @@ export interface DialogOptions {
cancellable?: boolean;
headerView?: any; // nativeView
footerView?: any; // nativeView
onDismiss?: Function; // calback for dismiss
buttons?: [
{
text: string; // title
buttonStyle: CFAlertActionStyle;
buttonAlignment?: CFAlertActionAlignment;
textColor?: string;
backgroundColor?: string;
onClick: Function;
}
];
onDismiss?: Function; // callback for dismiss
buttons?: Array<{
text: string; // title
buttonStyle: CFAlertActionStyle;
buttonAlignment?: CFAlertActionAlignment;
textColor?: string;
backgroundColor?: string;
onClick: Function;
}>;
simpleList?: {
items: [string];
items: Array<string>;
onClick: Function;
};
singleChoiceList?: {
items: [string];
items: Array<string>;
selectedItem: number;
onClick: Function;
};
multiChoiceList?: {
items: [string];
selectedItems: [boolean];
items: Array<string>;
selectedItems: Array<boolean>;
onClick: Function;
};
}
Expand Down

0 comments on commit d791cf4

Please sign in to comment.