ui/client/features/command-palette/workflows/PaletteState
Pure (WORKFLOW-001): the palette's query and highlighted row.
Cockpit client (features), v0.9. 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#
constinitialPalette: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