Skip to main content

Interface: CommandOf<TGantt, TDataset>

Defined in: api/command.ts:210

A named, invokable action with a label and a condition. No TArgs generic — every invocation path in S5 is argument-less (issue #137 G); see the step file for why a generic here would be type-unsound at the registry boundary.

Type Parameters​

TGantt​

TGantt = unknown

TDataset​

TDataset = Dataset

Properties​

id​

id: CommandId

Defined in: api/command.ts:211


label​

label: string

Defined in: api/command.ts:213

Menu text; also the a11y name.

Methods​

run()​

run(ctx): void

Defined in: api/command.ts:216

Parameters​

ctx​

CommandContextOf<TGantt, TDataset>

Returns​

void


when()?​

optional when(ctx): boolean

Defined in: api/command.ts:215

Static availability. Absent means always available.

Parameters​

ctx​

CommandContextOf<TGantt, TDataset>

Returns​

boolean