ui/client/features/tests/components/StepDocument
Cockpit client (features), v0.8. Source: ui/client/features/tests/components/StepDocument.tsx.
Functions#
StepDocument()#
StepDocument(
__namedParameters):Element
Defined in: ui/client/features/tests/components/StepDocument.tsx:16
The test as a document: one row per step, in order. A row is a real button (Enter / Space selects it, Tab reaches it); the selected row is marked with a border, an "Editing" word and aria-current, never colour alone. A removed row stays visible, struck through AND labelled, until the change is saved.
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
rows |
StepRowView[] |
Yes | — | |
selected |
`number | null` | Yes | — |
onSelect |
(key: number) => void |
Yes | — | |
onRestore |
(key: number) => void |
Yes | — | |
onAdd |
`(kind: 'event' | 'state' | 'check-text') => void` | Yes |
canAddEvent |
boolean |
Yes | — | |
canAddState |
boolean |
Yes | — |
Returns#
Element