跳到主要内容

Function: bindDataSource()

bindDataSource<T, Prop>(propertyPane, target): T

Type parameters

Type parameter
T extends PropertyBag
Prop extends string

Parameters

ParameterTypeDescription
propertyPaneIPropertyPaneThe property pane to bind the property bag to.
targetTThe property bag to bind to the pane.

Returns

T

Remarks

Takes the input object (a property bag of values) and bind it to the pane as a data source. UI child elements of the pane will be updated when the values in the object change, and vice versa.