new FormDialog()
new FormDialog() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
new FormDialog(string|null $component = 'k-form-dialog', array|string|bool|null $cancelButton = null, array $fields = [], string|null $size = 'medium', array|string|bool|null $submitButton = null, HtmlString|string|null $text = null, array $value = [], mixed ...$attrs)
Parameters
| Name | Type | Default |
|---|---|---|
| $component | stringornull |
'k-form-dialog'
|
| $cancelButton | arrayorstringorboolornull |
null
|
| $fields | array |
[]
|
| $size | stringornull |
'medium'
|
| $submitButton | arrayorstringorboolornull |
null
|
| $text | Kirby\Toolkit\HtmlStringorstringornull |
null
|
| $value | array |
[]
|
| ...$attrs | mixed |
no default value |