Skip to main content

Interface: Capabilities

Defined in: model/capabilities.ts:48

Live (S3/S5). linkCreate stays off this type until S7 (I11: no unimplemented public key).

Two levels read one type (ADR 0018). GanttOptions.capabilities is the consumer's own answer; EntryVariant.can is the variant's, one level under it.

Properties​

activate?​

optional activate?: CapabilityRule

Defined in: model/capabilities.ts:55

#434: may this Entry fire entryActivate — a click, Enter, or a double-click (opt-in) "opening" it. Default true, and resolved independently of select (I14): a rollup row with { select: false, activate: true } still activates though it never selects.


edit?​

optional edit?: WriteRule

Defined in: model/capabilities.ts:66

#256: the consumer's own answer to "may this cell's value change" — for a cell Field.editable already leaves open. It narrows an 'anywhere' Field per entry; it never reopens an 'api' or a 'never' Field, no matter what it answers.

It gates the inline cell editor, the bar's resize handles and the bar move alike, all three through one write check (I14). Answer undefined for a cell this rule says nothing about.


move?​

optional move?: CapabilityRule

Defined in: model/capabilities.ts:49


reorder?​

optional reorder?: CapabilityRule

Defined in: model/capabilities.ts:59

May the user drag this Entry to another place in the tree — a new parent, a new sibling index, or both (#425). Default: yes, when the Entry may write siblingIndex; a drop that changes the parent also needs parentId.


resize?​

optional resize?: CapabilityRule

Defined in: model/capabilities.ts:50


select?​

optional select?: CapabilityRule

Defined in: model/capabilities.ts:51