UNPKG

@wizni/quiver

Version:

Quiver- Angular frontend development tools.

67 lines (66 loc) 1.76 kB
import { Renderer2, ElementRef, AfterViewInit, ViewContainerRef, TemplateRef, ChangeDetectorRef } from '@angular/core'; export declare class TdMessageContainerDirective { viewContainer: ViewContainerRef; constructor(viewContainer: ViewContainerRef); } export declare class TdMessageComponent implements AfterViewInit { private _renderer; private _changeDetectorRef; private _elementRef; private _color; private _opened; private _initialized; _childElement: TdMessageContainerDirective; _template: TemplateRef<any>; readonly hidden: string; /** * label: string * * Sets the label of the message. */ label: string; /** * sublabel?: string * * Sets the sublabel of the message. */ sublabel: string; /** * icon?: string * * The icon to be displayed before the title. * Defaults to `info_outline` icon */ icon: string; /** * color?: primary | accent | warn * * Sets the color of the message. * Can also use any material color: purple | light-blue, etc. */ color: string; /** * opened?: boolean * * Shows or hiddes the message depending on its value. * Defaults to 'true'. */ opened: boolean; constructor(_renderer: Renderer2, _changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef); /** * Initializes the component and attaches the content if [opened] was true. */ ngAfterViewInit(): void; /** * Renders the message on screen. */ open(): void; /** * Removes the message content from screen. */ close(): void; /** * Toggles between open and close depending on state. */ toggle(): void; }