Edit

Share via


FormContent Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Inherits BaseObservable

Implements IFormContent

The FormContent class is used to create a form within the Command Palette. It provides properties and methods to manage the form's data, state, and template.

Properties

Property Type Description
DataJson String The JSON representation of the form's data.
StateJson String The JSON representation of the form's state.
TemplateJson String The JSON representation of the form's template.

Methods

Method Description
SubmitForm(String) Submits the form with the specified JSON data.
SubmitForm(String, String) Submits the form with the specified JSON data and state.