spfx-async-dropdown
Asynchronous dropdown component for the SPFx property pane
Installation
npm install spfx-async-dropdown
import
Examples
pnpjs
Get lists that are in the root web usingnew PropertyPaneAsyncDropdown
Props
Prop | Type |
---|---|
label (required) |
string |
onLoad (required) |
() => Promise<IDropdownOption[]> |
onPropertyChange (required) |
(property: string, newValue: any) => void |
selectedKey (required) |
string or number |
disabled | boolean |
required | boolean |
tooltip | IToolTip ({ content: string, iconName: string}). iconName is a Fabric icon |
placeholder | string |
description | string |