ui/client/features/pages-editor/hooks/usePropFlow
Cockpit client (features), v0.8. Source: ui/client/features/pages-editor/hooks/usePropFlow.tsx.
Functions#
usePropFlow()#
usePropFlow(
roots):object
Defined in: ui/client/features/pages-editor/hooks/usePropFlow.tsx:40
Derives the prop-flow diagram's pill/hierarchy layout, connecting edges, and legend colors from the tree — called from the PropFlowDiagram component (components may import a hook; only a direct domain/workflow/service import is banned).
Parameters#
roots
Returns#
object
colorMap
colorMap:
Map<string,string>
edges
edges:
PillEdge[]
layouts
layouts:
Map<string,NodeLayout>
showValues
showValues:
boolean
toggle
toggle: () =>
void
Returns
void
toggleShowValues
toggleShowValues: () =>
void
Returns
void
visible
visible:
boolean