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