Functions to dynamically manipulate panels in a dockview instance.
Usage
add_panel(dock, panel, ...)
remove_panel(dock, id)
select_panel(dock, id)
move_panel(dock, id, position = NULL, group = NULL, index = NULL)
move_group(dock, from, to, position = NULL)
move_group2(dock, from, to, position = NULL)Arguments
- dock
Dock proxy object created with
dock_view_proxy().- panel
A panel object (for
add_panel). See panel for parameters.- ...
Additional options (currently unused).
- id
Panel ID (character string).
- position
Panel/group position: one of "left", "right", "top", "bottom", "center".
- group
ID of a panel that belongs to the target group (for
move_panel).- index
Panel index within a group (for
move_panel).- from
Source group/panel ID (for move operations).
- to
Destination group/panel ID (for move operations).
Details
add_panel(): Adds a new panel to the dockviewremove_panel(): Removes an existing panelselect_panel(): Selects/focuses a specific panelmove_panel(): Moves a panel to a new positionmove_group(): Moves a group using group IDsmove_group2(): Moves a group using panel IDs