Line

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

ui/client/features/command-palette/workflows/PaletteState

Pure (WORKFLOW-001): the palette's query and highlighted row.

Cockpit client (features), next. Source: ui/client/features/command-palette/workflows/PaletteState.ts.

Type Aliases#

PaletteAction#

PaletteAction = { type: "RESET"; } | { query: string; type: "QUERY"; } | { index: number; type: "SET_ACTIVE"; } | { count: number; key: string; type: "MOVE"; }

Defined in: ui/client/features/command-palette/workflows/PaletteState.ts:6


PaletteState#

PaletteState = object

Defined in: ui/client/features/command-palette/workflows/PaletteState.ts:4

Properties#

activeIndex

activeIndex: number

Defined in: ui/client/features/command-palette/workflows/PaletteState.ts:4

query

query: string

Defined in: ui/client/features/command-palette/workflows/PaletteState.ts:4

Variables#

initialPalette#

const initialPalette: PaletteState

Defined in: ui/client/features/command-palette/workflows/PaletteState.ts:12

Functions#

paletteReducer()#

paletteReducer(state, action): PaletteState

Defined in: ui/client/features/command-palette/workflows/PaletteState.ts:14

Parameters#

state

PaletteState

action

PaletteAction

Returns#

PaletteState