Refactor #3832 Refactor #3833 - For Chip

This commit is contained in:
Bahadır Sofuoğlu 2023-04-10 22:42:57 +03:00
parent edc09b8bc6
commit a9185a87e7
3 changed files with 31 additions and 7 deletions

View file

@ -33,7 +33,6 @@ export interface ChipProps {
removable?: boolean;
/**
* Icon of the remove element.
* @defaultValue pi pi-times-circle
*/
removeIcon?: string;
}
@ -46,6 +45,20 @@ export interface ChipSlots {
* Content can easily be customized with the default slot instead of using the built-in modes.
*/
default(): VNode[];
/**
* Custom remove icon template of chip component.
* @param {Object} scope - remove icon slot's params.
*/
removeicon(scope: {
/**
* Remove icon click event
*/
click(): void;
/**
* Remove icon keydown event
*/
keydown(): void;
}): VNode[];
}
/**