mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
feat(overlays): expose animation customization
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
import { AnimationBuilder } from '../../interface';
|
||||||
|
|
||||||
export interface ActionSheetOptions {
|
export interface ActionSheetOptions {
|
||||||
header?: string;
|
header?: string;
|
||||||
@ -10,6 +11,9 @@ export interface ActionSheetOptions {
|
|||||||
mode?: string;
|
mode?: string;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
enterAnimation?: AnimationBuilder;
|
||||||
|
leaveAnimation?: AnimationBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ActionSheetButton {
|
export interface ActionSheetButton {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { TextFieldTypes } from '../../interface';
|
import { AnimationBuilder, TextFieldTypes } from '../../interface';
|
||||||
|
|
||||||
export interface AlertOptions {
|
export interface AlertOptions {
|
||||||
header?: string;
|
header?: string;
|
||||||
@ -14,6 +14,9 @@ export interface AlertOptions {
|
|||||||
mode?: string;
|
mode?: string;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
enterAnimation?: AnimationBuilder;
|
||||||
|
leaveAnimation?: AnimationBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AlertInput {
|
export interface AlertInput {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { SpinnerTypes } from '../../interface';
|
import { AnimationBuilder, SpinnerTypes } from '../../interface';
|
||||||
|
|
||||||
export interface LoadingOptions {
|
export interface LoadingOptions {
|
||||||
spinner?: SpinnerTypes;
|
spinner?: SpinnerTypes;
|
||||||
@ -12,4 +12,7 @@ export interface LoadingOptions {
|
|||||||
mode?: string;
|
mode?: string;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
enterAnimation?: AnimationBuilder;
|
||||||
|
leaveAnimation?: AnimationBuilder;
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,6 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
|
|||||||
componentProps?: ComponentProps<T>;
|
componentProps?: ComponentProps<T>;
|
||||||
showBackdrop?: boolean;
|
showBackdrop?: boolean;
|
||||||
backdropDismiss?: boolean;
|
backdropDismiss?: boolean;
|
||||||
enterAnimation?: AnimationBuilder;
|
|
||||||
leaveAnimation?: AnimationBuilder;
|
|
||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
delegate?: FrameworkDelegate;
|
delegate?: FrameworkDelegate;
|
||||||
animated?: boolean;
|
animated?: boolean;
|
||||||
@ -14,4 +12,7 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
|
|||||||
mode?: string;
|
mode?: string;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
enterAnimation?: AnimationBuilder;
|
||||||
|
leaveAnimation?: AnimationBuilder;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { AnimationBuilder } from '../../interface';
|
||||||
|
|
||||||
export interface PickerOptions {
|
export interface PickerOptions {
|
||||||
columns: PickerColumn[];
|
columns: PickerColumn[];
|
||||||
@ -9,6 +10,9 @@ export interface PickerOptions {
|
|||||||
mode?: string;
|
mode?: string;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
enterAnimation?: AnimationBuilder;
|
||||||
|
leaveAnimation?: AnimationBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PickerButton {
|
export interface PickerButton {
|
||||||
|
@ -6,8 +6,6 @@ export interface PopoverOptions<T extends ComponentRef = ComponentRef> {
|
|||||||
showBackdrop?: boolean;
|
showBackdrop?: boolean;
|
||||||
backdropDismiss?: boolean;
|
backdropDismiss?: boolean;
|
||||||
translucent?: boolean;
|
translucent?: boolean;
|
||||||
enterAnimation?: AnimationBuilder;
|
|
||||||
leaveAnimation?: AnimationBuilder;
|
|
||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
event?: Event;
|
event?: Event;
|
||||||
delegate?: FrameworkDelegate;
|
delegate?: FrameworkDelegate;
|
||||||
@ -16,4 +14,7 @@ export interface PopoverOptions<T extends ComponentRef = ComponentRef> {
|
|||||||
mode?: string;
|
mode?: string;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
enterAnimation?: AnimationBuilder;
|
||||||
|
leaveAnimation?: AnimationBuilder;
|
||||||
}
|
}
|
||||||
|
@ -8,11 +8,12 @@ export interface ToastOptions {
|
|||||||
closeButtonText?: string;
|
closeButtonText?: string;
|
||||||
position?: 'top' | 'bottom' | 'middle';
|
position?: 'top' | 'bottom' | 'middle';
|
||||||
translucent?: boolean;
|
translucent?: boolean;
|
||||||
enterAnimation?: AnimationBuilder;
|
|
||||||
leaveAnimation?: AnimationBuilder;
|
|
||||||
animated?: boolean;
|
animated?: boolean;
|
||||||
|
|
||||||
mode?: string;
|
mode?: string;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
enterAnimation?: AnimationBuilder;
|
||||||
|
leaveAnimation?: AnimationBuilder;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user