Skip to contents

Remove Panel dynamically

Usage

remove_panel(dock_id, id, session = getDefaultReactiveDomain())

Arguments

dock_id

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

id

Id of the panel that ought to be removed.

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.