ui/client/features/workflows/components/MachineCanvas
Cockpit client (features), next. Source: ui/client/features/workflows/components/MachineCanvas.tsx.
Functions#
MachineCanvas()#
MachineCanvas(
__namedParameters):Element
Defined in: ui/client/features/workflows/components/MachineCanvas.tsx:41
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
machine |
WorkflowMachine |
Yes | — | |
machineIndex |
number |
Yes | — | |
onEdit |
(req: WorkflowEditRequest) => void |
Yes | — | Ask for a visual edit (previewed as a diff, saved only on confirm). |
locked |
boolean |
Yes | — | true while a diff is awaiting confirmation or a request is in flight. |
active |
boolean |
Yes | — | This machine is the one the tools tabs (Narrative / Context / Edit) act on. |
onActivate |
(machineIndex: number) => void |
Yes | — | |
eventName |
string |
Yes | — | Event name typed in the Edit tab; used when dragging a new transition. |
hint |
`string | null` | Yes | — |
onHint |
`(hint: string | null) => void` | Yes | — |
onSelectEdge |
`(edge: SelectedEdge | null) => void` | Yes | — |
Returns#
Element