Labels
A feature that lets you display a label on each side of a Gantt task bar. See Labels for more information.
new Gantt({
features : {
labels : {
// Label rendered before the task bar with content from the record's `name` field
before : {
field : 'name',
editor : {
type : 'textfield'
}
},
// Label rendered below the task bar with custom content
// from a renderer
bottom : {
renderer : ({ taskRecord }) => `ID: ${taskRecord.id}`
}
}
}
});
This feature is disabled by default. For info on enabling it, see GridFeatures.
Configs
19
Configs
19Other
Configuration object for the label which appears after the task bar in the current writing direction.
Configuration object for the label which appears before the task bar in the current writing direction.
Bottom label configuration object.
Left label configuration object.
Right label configuration object.
Top label configuration object.
Misc
Properties
15
Properties
15Common
Class hierarchy
Other
Functions
28
Functions
28Configuration
Events
Misc
Other
Events
5
Events
5Event handlers
5
Event handlers
5Typedefs
3
Typedefs
3Configuration object for a label used by the Labels feature.
| Parameter | Type | Description |
|---|---|---|
field | String | The name of a field in the TaskModel |
renderer | function | A function, that is passed an object containing |
renderer.taskRecord | TaskModel | The Task record |
renderer.domConfig | DomConfig | The DOMConfig representing the label |
thisObj | Object | The |
editor | InputFieldConfig | Field | If the label is to be editable, a field configuration object with a
|