Skip to content

Kirby 6.0.0

new TextDrawer()

new TextDrawer() 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 TextDrawer(string $component = 'k-text-drawer', string|null $class = null, string|null $empty = null, string|null $icon = null, array|null $options = null, string|null $style = null, string|null $title = null, HtmlString|string|null $text = null, mixed ...$attrs)

Parameters

Name Type Default
$component string 'k-text-drawer'
$class stringornull null
$empty stringornull null
$icon stringornull null
$options arrayornull null
$style stringornull null
$title stringornull null
$text Kirby\Toolkit\HtmlStringorstringornull null
...$attrs mixed no default value

Parent class

Kirby\Panel\Ui\Drawer\TextDrawer