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

sp webpart base.basewebpart.onpropertypanefieldchanged

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

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

BaseWebPart.onPropertyPaneFieldChanged() method

This API is invoked after updating the new value of the property in the property bag when the PropertyPane is being used in Reactive mode. virtual

Signature:

protected onPropertyPaneFieldChanged(propertyPath: string, oldValue: any, newValue: any): void;

Parameters

Parameter Type Description
propertyPath string JSON path of the property in the property bag. In the case of custom field, if no target property is provided then a custom value is assigned, which will be in the form of _CustomField<key provided when the custom field is created>.
oldValue any Old value of the property. This value could be undefined/empty in the case of custom field.
newValue any New value of the property. This value could be undefined/empty in the case of custom field.

Returns:

void

Clone this wiki locally