UNPKG

primeng

Version:

[![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng) [![Actions CI](https://github.com/primefaces/primeng/workflows/No

56 lines (55 loc) 1.11 kB
import { TemplateRef } from '@angular/core'; /** * Custom add event. * @see {@link Chips.onAdd} */ export interface ChipsAddEvent { /** * Browser event. */ originalEvent: Event; /** * Added/Removed item value. */ value: any; } /** * Custom remove event. * @see {@link Chips.onRemove} * @extends {ChipsAddEvent} */ export interface ChipsRemoveEvent extends ChipsAddEvent { } /** * Custom click event. * @see {@link Chips.onChipClick} * @extends {ChipsAddEvent} */ export interface ChipsClickEvent extends ChipsAddEvent { } /** * Defines valid templates in Chips. * @group Templates */ export interface ChipsTemplates { /** * Custom item template. * @param {Object} context - item data. */ item(context: { /** * Value of the chip element. */ $implicit: any; }): TemplateRef<{ $implicit: any; }> | null; /** * Custom remove icon template. */ removetokenicon: TemplateRef<any> | null; /** * Custom clear icon template. */ clearicon: TemplateRef<any> | null; }