Skip to contents

Move Panel dynamically

Usage

move_panel(
  dock_id,
  id,
  position = NULL,
  group = NULL,
  index = NULL,
  session = getDefaultReactiveDomain()
)

Arguments

dock_id

Dock unique id. When using modules the namespace is automatically added.

id

Panel id.

position

Panel position options: one of "left", "right", "top", "bottom", "center".

group

ID of the panel you want to move the target to. They must belong to different groups.

index

Panel index. If panels belong to the same group, you can use index to move the target panel at the desired position. When group is left NULL, index must be passed and cannot exceed the total number of panels or be negative.

session

shiny session object. See https://dockview.dev/docs/api/dockview/panelApi/.

Value

This function is called for its side effect. It sends a message to JavaScript through the current websocket connection, leveraging the shiny session object.