dock_view | R Documentation |
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,
...,
theme = c("light-spaced", "light", "abyss", "abyss-spaced", "dark", "vs", "dracula",
"replit"),
add_tab = list(enable = FALSE, callback = NULL),
width = NULL,
height = NULL,
elementId = NULL
)
panels |
Widget configuration. Slot for panel. |
... |
Other options. See https://dockview.dev/docs/api/dockview/options/. |
theme |
Theme. One of
|
add_tab |
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. |
width |
Widget width. |
height |
Widget height. |
elementId |
When used outside Shiny. |
An HTML widget object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.