sp webpart base.propertypanetoggle - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

Home > @microsoft/sp-webpart-base > PropertyPaneToggle

PropertyPaneToggle() function

Warning: This API is now obsolete.

This is obsolete now. This function has been moved to @microsoft/sp-property-pane. Please consume it from there.

Helper method to create a Toggle on the PropertyPane.

Signature:

export declare function PropertyPaneToggle(targetProperty: string, properties: IPropertyPaneToggleProps): IPropertyPaneField<IPropertyPaneToggleProps>;

Parameters

Parameter Type Description
targetProperty string Target property the toggle is associated to.
properties IPropertyPaneToggleProps Strongly typed Toggle properties.

Returns:

IPropertyPaneField<IPropertyPaneToggleProps>

⚠️ **GitHub.com Fallback** ⚠️