Line

ui/client/features/blocks/components/BlockCard

Cockpit client (features), v0.9. Source: ui/client/features/blocks/components/BlockCard.tsx.

Functions#

BlockCard()#

BlockCard(__namedParameters): Element

Defined in: ui/client/features/blocks/components/BlockCard.tsx:44

One block: what it is in plain words, whether it is on for this project, and (folded away) what it reads and writes, its arguments, one example and its defaults. Presentation only: every change goes to the server through the props.

Props#

Prop Type Required Default Description
card BlockCardView Yes —
onToggle (id: string, enabled: boolean) => void Yes —
onEngine (id: string, engine: Engine) => void Yes —
onModel (id: string, model: string) => void Yes —
onRun (id: string) => void No —

Returns#

Element