mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
This commit also refactors ion-toast, so it uses shadow-dom, this is required since CSS variables does not work well in non-shadow-dom components. fixes #16099
26 lines
639 B
TypeScript
26 lines
639 B
TypeScript
import { AnimationBuilder, Mode } from '../../interface';
|
|
|
|
export interface ActionSheetOptions {
|
|
header?: string;
|
|
subHeader?: string;
|
|
cssClass?: string | string[];
|
|
buttons: (ActionSheetButton | string)[];
|
|
backdropDismiss?: boolean;
|
|
translucent?: boolean;
|
|
animated?: boolean;
|
|
mode?: Mode;
|
|
keyboardClose?: boolean;
|
|
id?: string;
|
|
|
|
enterAnimation?: AnimationBuilder;
|
|
leaveAnimation?: AnimationBuilder;
|
|
}
|
|
|
|
export interface ActionSheetButton {
|
|
text?: string;
|
|
role?: 'cancel' | 'destructive' | 'selected' | string;
|
|
icon?: string;
|
|
cssClass?: string | string[];
|
|
handler?: () => boolean | void | Promise<boolean>;
|
|
}
|