@ng-matero/extensions
Version:
Angular Material Extensions
31 lines (27 loc) • 1.44 kB
TypeScript
import * as i0 from '@angular/core';
import { EventEmitter } from '@angular/core';
import * as i1 from '@angular/common';
type MtxAlertType = 'default' | 'info' | 'success' | 'warning' | 'danger';
declare class MtxAlert {
private _changeDetectorRef;
get hostClassList(): string;
/** The alert's type. Can be `default`, `info`, `success`, `warning` or `danger`. */
type: MtxAlertType;
/** Whether to display an inline close button. */
dismissible: boolean;
/** The alert's elevation (0~24). */
elevation: number;
/** Event emitted when the alert closed. */
closed: EventEmitter<MtxAlert>;
_onClosed(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlert, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<MtxAlert, "mtx-alert", ["mtxAlert"], { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "elevation": { "alias": "elevation"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
static ngAcceptInputType_dismissible: unknown;
}
declare class MtxAlertModule {
static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlertModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxAlertModule, never, [typeof i1.CommonModule, typeof MtxAlert], [typeof MtxAlert]>;
static ɵinj: i0.ɵɵInjectorDeclaration<MtxAlertModule>;
}
export { MtxAlert, MtxAlertModule };
export type { MtxAlertType };