Interface: ChromePluginOf<TViewContext>
Defined in: api/plugin.ts:49
A plugin that is chrome and nothing else — timeShading(). It declares no Field, reserves no
store and claims no edit hook. So it installs on the Gantt, and gantt.plugins reconfigures it
live.
data?: never makes the wrong install site unrepresentable. GanttOptions.plugins takes this arm
alone. So a plugin with a data half is a red squiggle in the editor, never a runtime discovery.
It is the rule that keeps a shared scale off a Gantt that names preset.
Extends
Type Parameters
TViewContext
TViewContext = unknown
Properties
aggregators?
optionalaggregators?:undefined
Defined in: api/plugin.ts:61
data?
optionaldata?:undefined
Defined in: api/plugin.ts:54
fields?
optionalfields?:undefined
Defined in: api/plugin.ts:59
Dataset-owned state, registered at construction (#496 grill round 3). Unrepresentable here
for the same reason data?: never is: a chrome-only plugin has no data() to run them against.
So a Field it named would install silently dropped, on the wrong site, with no error —
GanttOptions.plugins never reads this member.
fieldTypes?
optionalfieldTypes?:undefined
Defined in: api/plugin.ts:60
hierarchySource?
optionalhierarchySource?:undefined
Defined in: api/plugin.ts:62
id
id:
string
Defined in: api/plugin.ts:34
Inherited from
requires?
optionalrequires?: readonlystring[]
Defined in: api/plugin.ts:39
Plugin ids that must also be installed. Does not imply an order in the array: installation
resolves setup order from requires alone, so [a, b] and [b, a] install identically. A
required id nobody installs throws MissingPluginError. One list covers both
halves (ADR 0019).
Inherited from
Methods
view()
view(
ctx):void|Disposer
Defined in: api/plugin.ts:53
Variants, renderers, decorations, commands and keys. Runs once, as a Gantt mounts. It returns a
Disposer for the plugin's own resources, or nothing at all (review P4). Every register* and
every onDomEvent files its own removal in ctx.disposables.
Parameters
ctx
TViewContext
Returns
void | Disposer