UNPKG

igniteui-webcomponents

Version:

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

39 lines (38 loc) 1.22 kB
import { LitElement } from 'lit'; import type { addAnimationController } from '../../../animations/player.js'; export declare abstract class IgcBaseAlertLikeComponent extends LitElement { private _internals; protected _autoHideTimeout?: number; protected abstract _animationPlayer: ReturnType<typeof addAnimationController>; /** * Whether the component is in shown state. * @attr */ open: boolean; /** * Determines the duration in ms in which the component will be visible. * @attr display-time */ displayTime: number; /** * Determines whether the component should close after the `displayTime` is over. * @attr keep-open */ keepOpen: boolean; /** * Sets the position of the component in the viewport. * @attr */ position: 'bottom' | 'middle' | 'top'; protected displayTimeChange(): void; protected keepOpenChange(): void; constructor(); private toggleAnimation; private setAutoHideTimer; /** Opens the component. */ show(): Promise<boolean>; /** Closes the component. */ hide(): Promise<boolean>; /** Toggles the open state of the component. */ toggle(): Promise<boolean>; }