primeng
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primeng) [ • 1.83 kB
TypeScript
import { OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "primeng/api";
export declare class BadgeDirective implements AfterViewInit, OnDestroy {
el: ElementRef;
iconPos: 'left' | 'right' | 'top' | 'bottom';
_value: string;
initialized: boolean;
private id;
constructor(el: ElementRef);
ngAfterViewInit(): void;
get value(): string;
set value(val: string);
severity: string;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[pBadge]", never, { "iconPos": "iconPos"; "value": "value"; "severity": "severity"; }, {}, never>;
}
export declare class Badge {
styleClass: string;
style: any;
size: string;
severity: string;
value: string;
containerClass(): {
'p-badge p-component': boolean;
'p-badge-no-gutter': boolean;
'p-badge-lg': boolean;
'p-badge-xl': boolean;
'p-badge-info': boolean;
'p-badge-success': boolean;
'p-badge-warning': boolean;
'p-badge-danger': boolean;
};
static ɵfac: i0.ɵɵFactoryDeclaration<Badge, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Badge, "p-badge", never, { "styleClass": "styleClass"; "style": "style"; "size": "size"; "severity": "severity"; "value": "value"; }, {}, never, never>;
}
export declare class BadgeModule {
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof Badge, typeof BadgeDirective], [typeof i1.CommonModule], [typeof Badge, typeof BadgeDirective, typeof i2.SharedModule]>;
static ɵinj: i0.ɵɵInjectorDeclaration<BadgeModule>;
}