From 8465dcb77aa1786f79a0f104e7eeaba366a1afd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 2 Jun 2022 11:57:30 +0300 Subject: [PATCH] Refactor #2542 --- api-generator/components/autocomplete.js | 6 ++++++ src/components/autocomplete/AutoComplete.d.ts | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/api-generator/components/autocomplete.js b/api-generator/components/autocomplete.js index d0b09bde2..98fcd885e 100644 --- a/api-generator/components/autocomplete.js +++ b/api-generator/components/autocomplete.js @@ -119,6 +119,12 @@ const AutoCompleteProps = [ default: "null", description: "Style class of the overlay panel." }, + { + name: "loadingIcon", + type: "string", + default: "pi pi-spinner", + description: "Icon to display in loading state." + }, { name: "virtualScrollerOptions", type: "object", diff --git a/src/components/autocomplete/AutoComplete.d.ts b/src/components/autocomplete/AutoComplete.d.ts index cfb715d24..a8950ce67 100755 --- a/src/components/autocomplete/AutoComplete.d.ts +++ b/src/components/autocomplete/AutoComplete.d.ts @@ -135,6 +135,11 @@ export interface AutoCompleteProps { * Style class of the overlay panel. */ panelClass?: any; + /** + * Icon to display in loading state. + * Default value is 'pi pi-spinner pi-spin'. + */ + loadingIcon?: string | undefined; /** * Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it. * @see VirtualScroller.VirtualScrollerProps