StacFormValidateAction class is used to validate a form in Stac applications.
Properties
| Property | Type | Description |
|---|---|---|
| isValid | StacAction | The action to perform if the form is valid. |
| isNotValid | StacAction | The action to perform if the form is not valid. |
Example
StacFormValidateAction(
isValid: StacDialogAction(
widget: StacText(data: 'Form is valid!'),
),
isNotValid: StacDialogAction(
widget: StacText(data: 'Form is not valid!'),
),
)
{
"actionType": "validateForm",
"isValid": {
"actionType": "showDialog",
"widget": {
"type": "text",
"data": "Form is valid!"
}
},
"isNotValid": {
"actionType": "showDialog",
"widget": {
"type": "text",
"data": "Form is not valid!"
}
}
}