UNPKG

643 BTypeScriptView Raw
1import { AnimationBuilder, Mode } from '../../interface';
2export interface ActionSheetOptions {
3 header?: string;
4 subHeader?: string;
5 cssClass?: string | string[];
6 buttons: (ActionSheetButton | string)[];
7 backdropDismiss?: boolean;
8 translucent?: boolean;
9 animated?: boolean;
10 mode?: Mode;
11 keyboardClose?: boolean;
12 id?: string;
13 enterAnimation?: AnimationBuilder;
14 leaveAnimation?: AnimationBuilder;
15}
16export interface ActionSheetButton {
17 text?: string;
18 role?: 'cancel' | 'destructive' | 'selected' | string;
19 icon?: string;
20 cssClass?: string | string[];
21 handler?: () => boolean | void | Promise<boolean | void>;
22}