ui/client/features/shell/hooks/useRevealPanes
Cockpit client (features), v0.9. Source: ui/client/features/shell/hooks/useRevealPanes.tsx.
Functions#
useRevealPanes()#
useRevealPanes(
projectKnown,projectDir,wanted,toggle):void
Defined in: ui/client/features/shell/hooks/useRevealPanes.tsx:10
A screen that puts tabs into a pane wants it visible: open that pane when its first tab appears (only on that transition, so collapsing it afterwards sticks). Waits for the project's saved layout to load first, or that load would overwrite the reveal.
Parameters#
projectKnown
boolean
projectDir
string | null
wanted
left
boolean
right
boolean
toggle
(pane, open?) => void
Returns#
void