Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp webpart base.basewebpart.loadpropertypaneresources

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-webpart-base > BaseWebPart > loadPropertyPaneResources

BaseWebPart.loadPropertyPaneResources() method

This API enables asynchronous loading of property pane related resources of the web part.

Signature:

/** @virtual */
protected loadPropertyPaneResources(): Promise<void>;

Returns:

Promise<void>

Remarks

If not overridden by the web part, base web part resolves the promise immediately.

This method is called before any property pane APIs are called. Other property pane APIs cannot be called until this promise is resolved. No other property pane related events are raised except 'PropertyPaneConfigurationComplete'.

'PropertyPaneConfigurationComplete' event can be raised to clean up any pending resources including 'loadPropertyPaneResources' promise.

Clone this wiki locally