Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/shell/hooks/useDrawerActions

Cockpit client (features), next. Source: ui/client/features/shell/hooks/useDrawerActions.tsx.

Functions#

useDrawerActions()#

useDrawerActions(toggle, select): object

Defined in: ui/client/features/shell/hooks/useDrawerActions.tsx:7

Opens the drawer on a given tab (used by the Processes pill, the status bar and palette commands).

Parameters#

toggle

(pane, open?) => void

select

(region, id) => void

Returns#

object

showDrawerTab

showDrawerTab: (tab) => void

Parameters
tab

string

Returns

void