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)
Name |
Type |
Default |
$component |
string |
'k-view-button'
|
$model |
Kirby\Cms\ModelWithContent |orKirby\Cms\Language |ornull |
null
|
$badge |
array |ornull |
null
|
$class |
string |ornull |
null
|
$current |
string |orbool |ornull |
null
|
$dialog |
string |ornull |
null
|
$disabled |
bool |
false
|
$drawer |
string |ornull |
null
|
$dropdown |
bool |ornull |
null
|
$icon |
string |ornull |
null
|
$link |
string |ornull |
null
|
$options |
array |orstring |ornull |
null
|
$responsive |
string |orbool |
true
|
$size |
string |ornull |
'sm'
|
$style |
string |ornull |
null
|
$target |
string |ornull |
null
|
$text |
array |orstring |ornull |
null
|
$theme |
string |ornull |
null
|
$title |
array |orstring |ornull |
null
|
$type |
string |
'button'
|
$variant |
string |ornull |
'filled'
|
...$attrs |
mixed |
–
no default value
|
Kirby\Panel\Ui\Buttons\ViewButton