diff --git a/api-generator/components/cascadeselect.js b/api-generator/components/cascadeselect.js index 46e56a97a..00d43400f 100644 --- a/api-generator/components/cascadeselect.js +++ b/api-generator/components/cascadeselect.js @@ -107,12 +107,24 @@ const CascadeSelectProps = [ default: 'false', description: 'Whether the multiselect is in loading state.' }, + { + name: 'dropdownIcon', + type: 'string', + default: 'null', + description: 'Icon to display in the dropdown.' + }, { name: 'loadingIcon', type: 'string', - default: 'pi pi-spinner pi-spin', + default: 'null', description: 'Icon to display in loading state.' }, + { + name: 'optionGroupIcon', + type: 'string', + default: 'null', + description: 'Icon to display in the option group.' + }, { name: 'autoOptionFocus', type: 'boolean', @@ -262,15 +274,19 @@ const CascadeSelectEvents = [ const CascadeSelectSlots = [ { name: 'value', - description: "Custom content for the item's value" + description: "Custom content for the item's value." }, { name: 'option', - description: "Custom content for the item's option" + description: "Custom content for the item's option." }, { name: 'indicator', - description: 'Custom content for the dropdown indicator' + description: 'Custom content for the dropdown indicator.' + }, + { + name: 'optiongroupicon', + description: 'Custom content for the option group icon.' } ]; diff --git a/components/lib/cascadeselect/CascadeSelect.d.ts b/components/lib/cascadeselect/CascadeSelect.d.ts index fceadf74b..deb096a30 100644 --- a/components/lib/cascadeselect/CascadeSelect.d.ts +++ b/components/lib/cascadeselect/CascadeSelect.d.ts @@ -116,17 +116,14 @@ export interface CascadeSelectProps { loading?: boolean | undefined; /** * Icon to display in the dropdown. - * @defaultValue pi pi-chevron-down */ dropdownIcon?: string | undefined; /** * Icon to display in loading state. - * @defaultValue pi pi-spinner pi-spin */ loadingIcon?: string | undefined; /** * Icon to display in the option group. - * @defaultValue pi pi-angle-right */ optionGroupIcon?: string | undefined; /** @@ -214,6 +211,10 @@ export interface CascadeSelectSlots { * Custom indicator template. */ indicator(): VNode[]; + /** + * Custom option group icon template. + */ + optiongroupicon(): VNode[]; } /** diff --git a/components/lib/cascadeselect/CascadeSelect.vue b/components/lib/cascadeselect/CascadeSelect.vue index a3626d806..fb22cd210 100644 --- a/components/lib/cascadeselect/CascadeSelect.vue +++ b/components/lib/cascadeselect/CascadeSelect.vue @@ -31,7 +31,8 @@
@@ -71,6 +72,9 @@ diff --git a/components/lib/cascadeselect/CascadeSelectSub.vue b/components/lib/cascadeselect/CascadeSelectSub.vue index fd797b94c..725ed9920 100644 --- a/components/lib/cascadeselect/CascadeSelectSub.vue +++ b/components/lib/cascadeselect/CascadeSelectSub.vue @@ -15,7 +15,9 @@