mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
parent
a8f3e2d5e3
commit
a42abd68a0
11 changed files with 53 additions and 7 deletions
10
components/lib/chip/Chip.d.ts
vendored
10
components/lib/chip/Chip.d.ts
vendored
|
@ -20,6 +20,7 @@ export interface ChipProps {
|
|||
label?: string;
|
||||
/**
|
||||
* Defines the icon to display.
|
||||
* @deprecated since v3.27.0. Use 'icon' slot.
|
||||
*/
|
||||
icon?: string;
|
||||
/**
|
||||
|
@ -33,6 +34,7 @@ export interface ChipProps {
|
|||
removable?: boolean;
|
||||
/**
|
||||
* Icon of the remove element.
|
||||
* @deprecated since v3.27.0. Use 'removeicon' slot.
|
||||
*/
|
||||
removeIcon?: string;
|
||||
}
|
||||
|
@ -45,6 +47,10 @@ export interface ChipSlots {
|
|||
* Content can easily be customized with the default slot instead of using the built-in modes.
|
||||
*/
|
||||
default(): VNode[];
|
||||
/**
|
||||
* Custom icon template.
|
||||
*/
|
||||
icon(): VNode[];
|
||||
/**
|
||||
* Custom remove icon template of chip component.
|
||||
* @param {Object} scope - remove icon slot's params.
|
||||
|
@ -53,11 +59,11 @@ export interface ChipSlots {
|
|||
/**
|
||||
* Remove icon click event
|
||||
*/
|
||||
click(): void;
|
||||
onClick(): void;
|
||||
/**
|
||||
* Remove icon keydown event
|
||||
*/
|
||||
keydown(): void;
|
||||
onKeydown(): void;
|
||||
}): VNode[];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue