Skip to content

Kirby 5.0.4

new ViewButton()

new ViewButton(string $component = 'k-view-button', Kirby\Cms\ModelWithContent|Kirby\Cms\Language|null $model = null, array|null $badge = null, string|null $class = null, string|bool|null $current = null, string|null $dialog = null, bool $disabled = false, string|null $drawer = null, bool|null $dropdown = null, string|null $icon = null, string|null $link = null, array|string|null $options = null, string|bool $responsive = true, string|null $size = 'sm', string|null $style = null, string|null $target = null, array|string|null $text = null, string|null $theme = null, array|string|null $title = null, string $type = 'button', string|null $variant = 'filled', ...$attrs)

Parameters

Name Type Default
$component string 'k-view-button'
$model Kirby\Cms\ModelWithContentorKirby\Cms\Languageornull null
$badge arrayornull null
$class stringornull null
$current stringorboolornull null
$dialog stringornull null
$disabled bool false
$drawer stringornull null
$dropdown boolornull null
$icon stringornull null
$link stringornull null
$options arrayorstringornull null
$responsive stringorbool true
$size stringornull 'sm'
$style stringornull null
$target stringornull null
$text arrayorstringornull null
$theme stringornull null
$title arrayorstringornull null
$type string 'button'
$variant stringornull 'filled'
...$attrs mixed no default value

Parent class

Kirby\Panel\Ui\Buttons\ViewButton