Creates an interactive dock view widget that enables flexible layout management with draggable, resizable, and dockable panels. This is a wrapper around the dockview.dev JavaScript library, providing a powerful interface for creating IDE-like layouts in Shiny applications or R Markdown documents.
dock_view(
panels = list(),
...,
theme = c("light-spaced", "light", "abyss", "abyss-spaced", "dark", "vs", "dracula",
"replit"),
add_tab = new_add_tab_plugin(),
width = NULL,
height = NULL,
elementId = NULL
)An HTML widget object.
An unnamed list of panel().
Other options. See https://dockview.dev/docs/api/dockview/options/.
Theme. One of
c("abyss", "dark", "light", "vs", "dracula", "replit").
Globally controls the add tab behavior. List with enable and callback.
Enable is a boolean, default to FALSE and callback is a
JavaScript function passed with JS.
See default_add_tab_callback(). By default, the callback
sets a Shiny input input[["<dock_ID>_panel-to-add"]]
so you can create observers with custom logic.
Widget width.
Widget height.
When used outside Shiny.