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

sp adaptive card extension base.baseadaptivecardextension.onpropertypanefieldchanged

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

Home > @microsoft/sp-adaptive-card-extension-base > BaseAdaptiveCardExtension > onPropertyPaneFieldChanged

BaseAdaptiveCardExtension.onPropertyPaneFieldChanged() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Lifecycle method called when a Property Pane field is changed.

Signature:

/** @virtual */
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

Remarks

This is invoked for reactive Property Panes.

Clone this wiki locally