UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

95 lines (94 loc) 3.55 kB
import { AfterContentInit, EventEmitter, QueryList, SimpleChanges, TemplateRef } from '@angular/core'; import { PrimeTemplate } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import { ChipProps } from './chip.interface'; import { ChipStyle } from './style/chipstyle'; import * as i0 from "@angular/core"; import * as i1 from "primeng/api"; /** * Chip represents people using icons, labels and images. * @group Components */ export declare class Chip extends BaseComponent implements AfterContentInit { /** * Defines the text to display. * @group Props */ label: string | undefined; /** * Defines the icon to display. * @group Props */ icon: string | undefined; /** * Defines the image to display. * @group Props */ image: string | undefined; /** * Alt attribute of the image. * @group Props */ alt: string | undefined; /** * Inline style of the element. * @group Props */ style: { [klass: string]: any; } | null | undefined; /** * Class of the element. * @group Props */ styleClass: string | undefined; /** * Whether to display a remove icon. * @group Props */ removable: boolean | undefined; /** * Icon of the remove element. * @group Props */ removeIcon: string | undefined; /** * Callback to invoke when a chip is removed. * @param {MouseEvent} event - Mouse event. * @group Emits */ onRemove: EventEmitter<MouseEvent>; /** * This event is triggered if an error occurs while loading an image file. * @param {Event} event - Browser event. * @group Emits */ onImageError: EventEmitter<Event>; visible: boolean; get removeAriaLabel(): any; /** * Used to pass all properties of the chipProps to the Chip component. * @group Props */ get chipProps(): ChipProps; set chipProps(val: ChipProps | undefined); _chipProps: ChipProps; _componentStyle: ChipStyle; removeIconTemplate: TemplateRef<any> | undefined; templates: QueryList<PrimeTemplate> | undefined; _removeIconTemplate: TemplateRef<any> | undefined; ngAfterContentInit(): void; ngOnChanges(simpleChanges: SimpleChanges): void; containerClass(): string; close(event: MouseEvent): void; onKeydown(event: any): void; imageError(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration<Chip, never>; static ɵcmp: i0.ɵɵComponentDeclaration<Chip, "p-chip", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "image": { "alias": "image"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "chipProps": { "alias": "chipProps"; "required": false; }; }, { "onRemove": "onRemove"; "onImageError": "onImageError"; }, ["removeIconTemplate", "templates"], ["*"], true, never>; static ngAcceptInputType_removable: unknown; } export declare class ChipModule { static ɵfac: i0.ɵɵFactoryDeclaration<ChipModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<ChipModule, never, [typeof Chip, typeof i1.SharedModule], [typeof Chip, typeof i1.SharedModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<ChipModule>; }