Skip to content

Kirby 6.0.0

new TextDialog()

new TextDialog() 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 TextDialog(string|null $component = 'k-text-dialog', array|string|bool|null $cancelButton = null, string|null $size = 'medium', array|string|bool|null $submitButton = null, HtmlString|string|null $text = null, mixed ...$attrs)

Parameters

Name Type Default
$component stringornull 'k-text-dialog'
$cancelButton arrayorstringorboolornull null
$size stringornull 'medium'
$submitButton arrayorstringorboolornull null
$text Kirby\Toolkit\HtmlStringorstringornull null
...$attrs mixed no default value

Parent class

Kirby\Panel\Ui\Dialog\TextDialog