Line

ui/client/features/flow-browser/hooks/useFlowBrowser

Cockpit client (features), v0.9. Source: ui/client/features/flow-browser/hooks/useFlowBrowser.ts.

Functions#

useFlowBrowser()#

useFlowBrowser(feature): object

Defined in: ui/client/features/flow-browser/hooks/useFlowBrowser.ts:14

The Flow view for one feature: loads its flow, keeps the selection, works out which rows the selection uses / is used by, and the hover explanation.

Parameters#

feature

string

Returns#

object

collapsed

collapsed: string[] = state.collapsed

data

data: FlowData | null

hideHint

hideHint: () => void

Returns

void

hover

hover: FlowHover | null

load

load: FlowLoadState = state.load

relations

relations: Map<string, Relation>

select

select: (id) => void

Parameters
id

string

Returns

void

selectedId

selectedId: string | null = state.selectedId

showHint

showHint: (row, el) => void

Parameters
row

FlowRow

el

HTMLElement

Returns

void

shown

shown: FlowRow[]

toggle

toggle: (id) => void

Parameters
id

string

Returns

void