Refactor #3832 Refactor #3833 - For MultiSelect

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-04 15:41:18 +03:00
parent 01fe1466a6
commit c1c9953939
3 changed files with 129 additions and 33 deletions

View file

@ -191,32 +191,26 @@ export interface MultiSelectProps {
loading?: boolean | undefined;
/**
* Icon to display in the checkboxes.
* @defaultValue pi pi-check
*/
checkboxIcon?: string | undefined;
/**
* Icon to display in the dropdown close button.
* @defaultValue pi pi-times
*/
closeIcon?: string | undefined;
/**
* Icon to display in the dropdown.
* @defaultValue pi pi-chevron-down
*/
dropdownIcon?: string | undefined;
/**
* Icon to display in filter input.
* @defaultValue pi pi-search
*/
filterIcon?: string | undefined;
/**
* Icon to display in loading state.
* @defaultValue pi pi-spinner pi-spin
*/
loadingIcon?: string | undefined;
/**
* Icon to display in chip remove action.
* @defaultValue pi pi-times-circle
*/
removeTokenIcon?: string | undefined;
/**
@ -414,6 +408,38 @@ export interface MultiSelectSlots {
*/
options: any[];
}): VNode[];
/**
* Custom remove token icon template.
*/
removetokenicon(): VNode[];
/**
* Custom header checkbox icon template.
* @param {Object} scope - header checkbox icon slot's params.
*/
headercheckboxicon(scope: {
/**
* Options of the loader items for virtualscroller
*/
allSelected: boolean;
}): VNode[];
/**
* Custom filter icon template.
*/
filtericon(): VNode[];
/**
* Custom close icon template.
*/
closeicon(): VNode[];
/**
* Custom item checkbox icon template.
* @param {Object} scope - header checkbox icon slot's params.
*/
itemcheckboxicon(scope: {
/**
* Options of the loader items for virtualscroller
*/
selected: boolean;
}): VNode[];
}
/**