Line

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

ui/client/features/shell/domain/NarrowPanes

Pure (DOMAIN-001): the entries of the narrow layout's bottom tab bar.

Cockpit client (features), next. Source: ui/client/features/shell/domain/NarrowPanes.ts.

Variables#

DEFAULT_NARROW_PANE#

const DEFAULT_NARROW_PANE: NarrowPane = 'mid'

Defined in: ui/client/features/shell/domain/NarrowPanes.ts:13


NARROW_PANES#

const NARROW_PANES: object[]

Defined in: ui/client/features/shell/domain/NarrowPanes.ts:6

Bottom tab bar entries, in visual order; mid is the stage (the current screen). Labels match the design doc's (section 6) landmark names: Browse (left), Inspect (right), Run (the drawer).

Type Declaration#

id

id: NarrowPane

label

label: string

Functions#

nextNarrowPane()#

nextNarrowPane(current, key): NarrowPane | null

Defined in: ui/client/features/shell/domain/NarrowPanes.ts:16

Pane to move to for a key press on the bottom tab bar; null for other keys.

Parameters#

current

NarrowPane

key

string

Returns#

NarrowPane | null