UNPKG

@wizni/quiver

Version:

Quiver- Angular frontend development tools.

66 lines (65 loc) 2.17 kB
import { ElementRef, AfterContentInit } from '@angular/core'; export declare enum TdNotificationCountPositionY { Top, Bottom, Center, } export declare enum TdNotificationCountPositionX { Before, After, Center, } export declare class TdNotificationCountComponent implements AfterContentInit { private _notifications; private _positionY; private _positionX; /** * Div content wrapper of `ng-content`. */ content: ElementRef; /** * color?: "primary" | "accent" | "warn" * Sets the theme color of the notification tip. Defaults to "warn" */ color: 'primary' | 'accent' | 'warn'; /** * positionX?: TdNotificationCountPositionX or "before" | "after" | "center" * Sets the X position of the notification tip. * Defaults to "after" if it has content, else 'center'. */ positionX: TdNotificationCountPositionX; /** * positionY?: TdNotificationCountPositionY or "top" | "bottom" | "center" * Sets the Y position of the notification tip. * Defaults to "top" if it has content, else 'center'. */ positionY: TdNotificationCountPositionY; /** * notifications?: number | boolean * Number for the notification count. Shows component only if the input is a positive number or 'true' */ notifications: number | boolean; readonly hideHost: boolean; /** * Sets the component in its 'noCount' state if [notifications] is a boolean 'true'. * Makes the notification tip show without a count. */ readonly noCount: string | boolean; /** * Notification display string when a count is available. * Anything over 99 gets set as 99+ */ readonly notificationsDisplay: string; /** * Shows notification tip only when [notifications] is true or a positive integer. */ readonly show: boolean; /** * Check if [positionX] and [positionY] have been set as inputs, else use defaults depending on component content. */ ngAfterContentInit(): void; /** * Method to check if element has any kind of content (elements or text) */ private _hasContent(); }