UNPKG

ngx-msg

Version:

Angular notification component

26 lines (25 loc) 1.08 kB
import { OnChanges, OnInit, OnDestroy, SimpleChanges } from "@angular/core"; import { Subscription } from "rxjs"; import { INgxMsg } from "./interfaces/ngx-msg.interface"; import { INgxMsgOptions } from "./interfaces/ngx-msg-options.interface"; import { INgxMsgPosition } from "./interfaces/ngx-msg-position.interface"; import { NgxMsgService } from "./services/ngx-msg.service"; import { NgxMsgConfigService } from "./services/ngx-msg-config.service"; export declare class NgxMsgComponent implements OnChanges, OnInit, OnDestroy { private msgService; private config; options: INgxMsgOptions; messages: Array<INgxMsg>; pos: INgxMsgPosition; subscription: Subscription; opts: INgxMsgOptions; constructor(msgService: NgxMsgService, config: NgxMsgConfigService); ngOnInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; parseOptions(opts: INgxMsgOptions): void; newMessage(msg: INgxMsg): void; onClickMsg(msg: INgxMsg): void; removeMessage(msg: INgxMsg): void; setPosition(pos: number): void; }