1 | import { AnimationBuilder, Mode } from '../../interface';
|
2 | export 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 | }
|
16 | export 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 | }
|