Interface: Capabilities
Defined in: model/capabilities.ts:47
Live (S3/S5/S7).
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?
optionalactivate?:CapabilityRule
Defined in: model/capabilities.ts:54
#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.
connect?
optionalconnect?:CapabilityRule
Defined in: model/capabilities.ts:63
May the user drag a connector from this Entry's bar edge to another bar. It gates the connector
port and the drag alike. Default true. It has an effect only while a plugin registers a
connect handler with ctx.view.onConnect. The drag writes nothing itself, so no Field lock
closes it. Call: capabilities: { connect: (entry) => entry.read('locked') !== true }.
edit?
optionaledit?:WriteRule
Defined in: model/capabilities.ts:70
#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?
optionalmove?:CapabilityRule
Defined in: model/capabilities.ts:48
reorder?
optionalreorder?:CapabilityRule
Defined in: model/capabilities.ts:58
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?
optionalresize?:CapabilityRule
Defined in: model/capabilities.ts:49
select?
optionalselect?:CapabilityRule
Defined in: model/capabilities.ts:50