Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/shell/domain/RailState

Pure (DOMAIN-001): whether the screens rail shows icon + label or icons only, and its storage key.

Cockpit client (features), v0.8. Source: ui/client/features/shell/domain/RailState.ts.

Variables#

RAIL_STORAGE_KEY#

const RAIL_STORAGE_KEY: "construct.shell.rail" = 'construct.shell.rail'

Defined in: ui/client/features/shell/domain/RailState.ts:4

Functions#

parseRailCollapsed()#

parseRailCollapsed(raw): boolean

Defined in: ui/client/features/shell/domain/RailState.ts:7

Turns whatever was in storage into a collapsed flag (anything but the exact string collapsed is expanded).

Parameters#

raw

string | null

Returns#

boolean


serializeRailCollapsed()#

serializeRailCollapsed(collapsed): string

Defined in: ui/client/features/shell/domain/RailState.ts:11

Parameters#

collapsed

boolean

Returns#

string