Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Composite form

Overview

A container composed of a set of different inputs for data update or submission. The composite form supports multiple views.

Properties

Name
Type
Description

name

string

Component name

views

string[]

Array of available view names

selectedView

string

Name of the selected view

value

value

Current component value

children

children

The children of the component

valid

boolean

Indicates if the component is valid

validating

boolean

Indicates if the component is validating

All nested inputs are included in the component’s value property, allowing you to build custom forms. Composite Form supports custom validation for its complete value, including validation errors mapped to nested fields.

Methods

Name
Parameters
Returns
Description

selectView

name: string

void

Select a view by name

setValue

data: object

void

Set component data

resetValue

–

void

Reset component to the initial value

validate

–

void

Trigger form validation

resetValidation

–

void

Clear validation errors

setErrors

errors: object | null

void

Mark the Composite Form as invalid and map validation errors to matching nested fields. Pass null to clear the errors.

setSubmitButtonDisabled

disabled: boolean

void

Disable or enable the submit button

submit

–

void

Trigger submit event

Triggers

Name
Description

On Init

Triggered when the component is initialized

On Submit

Triggered when the form is submitted

On Click

Triggered when the form is clicked

On Double Click

Triggered when the component is double-clicked

On Change

Triggered when the form's state changes

On Validate

Triggered when the Composite Form value is validated. The complete component value is available as {{params}}.

On Custom Button Click

Triggered when the custom button is clicked

On Custom Button Double Click

Triggered when the custom button is double-clicked

Last updated

Was this helpful?