kaspacom-ui
Version:
UI Component Library for KaspaCom DeFi Applications
32 lines • 1.2 kB
TypeScript
import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { NotificationService } from '../notification.service';
import { NotificationMessage } from '../snackbar.models';
import * as i0 from "@angular/core";
export declare class KcSnackbarComponent implements OnInit, OnDestroy {
private notificationService;
private cdr;
messages: NotificationMessage[];
private subscription;
constructor(notificationService: NotificationService, cdr: ChangeDetectorRef);
ngOnInit(): void;
ngOnDestroy(): void;
/**
* Remove a specific message
*/
remove(id: string): void;
/**
* Get the appropriate animation transform based on position
*/
getEnterTransform(): string;
/**
* Get container class based on position
*/
getContainerClass(): string;
/**
* Get snackbar item class based on notification type
*/
getSnackbarClass(type: string): string;
static ɵfac: i0.ɵɵFactoryDeclaration<KcSnackbarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<KcSnackbarComponent, "kc-snackbar", never, {}, {}, never, never, true, never>;
}
//# sourceMappingURL=kc-snackbar.component.d.ts.map