UNPKG

gentics-ui-core

Version:

This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.

52 lines (51 loc) 1.46 kB
import { ElementRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare type ToastType = 'default' | 'error' | 'success' | 'warning'; /** * A Toast notification component. Not to be used directly - see Notification service for * documentation. */ export declare class Toast { private elementRef; message: string; messageLines: string[]; type: ToastType | string; position: any; actionLabel: string; actionOnClick: Function; dismissFn: Function; dismissOnClick: boolean; dismissing: boolean; toastRef: ElementRef; private hammerManager; constructor(elementRef: ElementRef); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** * Returns the height of the toast div. */ getHeight(): number; /** * Returns a CSS transform string for positioning */ getTransform(): string; /** * Begin the dismiss animation */ startDismiss(): void; /** * Invoke the action onClick handler if defined. */ actionClick(): void; /** * Manual dismiss which is invoked when the toast is clicked. */ dismiss(): void; /** * Set up a Hammerjs-based swipe gesture handler to dismiss toasts. */ private initSwipeHandler; static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>; static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "gtx-toast", never, {}, {}, never, never>; }