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.setstate

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

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

BaseAdaptiveCardExtension.setState() 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.

Update the state of the Adaptive Card Extension and re-render.

Signature:

setState(newState?: Partial<TState>): void;

Parameters

Parameter Type Description
newState Partial<TState>

Returns:

void

Remarks

BaseAdaptiveCardExtension.state must have been initialized before calling BaseAdaptiveCardExtension.setState().

Clone this wiki locally