ViewButtons::view()
Creates new instance for a view with special support for model views
ViewButtons::view() 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.
ViewButtons::view(ModelViewController|string $view, ModelWithContent|Language|null $model = null): ViewButtons
Parameters
| Name | Type | Default |
|---|---|---|
| $viewrequired | Kirby\Panel\Controller\View\ModelViewControllerorstring |
no default value |
| $model | Kirby\Cms\ModelWithContentorKirby\Cms\Languageornull |
null
|
Return type
Kirby\Panel\Ui\Button\ViewButtons