What's new in Gantt v4.0.0+
Gantt v4.2.0
Infinite time axis scroll
This release adds a long awaited feature for Gantt - infinite scroll along the time axis. To enable it, configure your gantt with infiniteScroll : true. When a user scrolls to near the start or end of the time axis, it will be seamlessly extended. Try it out in the new infinite-scroll demo.
Easier to create dependencies using drag and drop
Dependencies can now be created by dropping anywhere on the task bar element, whereas in previous versions you had to hit a specific side circle element to define it. This new behaviour is controlled using the allowDropOnEventBar config of the Dependencies feature. It is enabled by default.
Gantt v4.2.3
Configurable ExportDialog widget
In previous releases it was difficult to configure the export dialog widget. In the new release we applied the approach used for the Task Editor which proved itself to be very flexible. You can customize widgets using the new public config exportDialog:
const gantt = new Gantt({
features : {
pdfExport : {
exportDialog : {
items : {
// hide the field
orientationField : { hidden : true },
// move the field up
exporterTypeField : { weight : 150 },
// change default format in exporter
fileFormatField : { value : 'png' },
// configure nested items
rangesContainer : {
layoutStyle : {
flexDirection : 'column'
},
items : {
rangeStartField : { value : new Date() }
}
}
}
}
}
}
});
gantt.features.pdfExport.showExportDialog();
You can add new fields, buttons, containers (any widget, essentially) and use their values in the export listeners. For more info please refer to the updated Export Dialog documentation.
Also, export dialog has become publicly available on the feature instance, which allows adding listeners directly to it:
const gantt = new Gantt({
features : {
pdfExport : true
}
});
gantt.features.pdfExport.exportDialog.on({
show() {
const { columnsField } = this.widgetMap;
// When dialog opens all columns with name matching 'date' would
// be selected in the columns field
columnsField.value = gantt.columns.query(c => c.name.match(/date/i));
}
})
Compared to previous releases export dialog is always there when you refer to it.
Gantt v4.2.4
Configurable behavior in DST time zones
Prior to this release, Project would try to keep duration in days an integer number if task start and end dates were midnight. Meaning duration in hours is always an integer multiple of 24. However, if odd number of DST transitions occur between start and end that rule does not apply.
In this release we're changing the default behavior. Now Project will not try to add or remove an extra hour from duration, if DST transition occur. If you want to keep the old behavior, please set this config on the project:
new Gantt({
project : {
adjustDurationToDST : true
}
})
Gantt v4.2.5
Using Bryntum Gantt ProjectModel with Node.js
Bryntum Gantt now contain compatible Modules and CommonJS bundles that include ProjectModel and other required classes but no UI.
| Bundle | Description |
|---|---|
| gantt.node.cjs | Node.js bundle in CommonJS format |
| gantt.node.mjs | Node.js bundle in Modules format |
Please check Node.js Integration Guide for the details.
Gantt v4.2.7
Disabling scheduling engine calculations
Added new setCalculations method to the ProjectModel class. The method toggles the project owned model fields calculation functions. That allows changing the standard fields behavior dynamically. Please check new static demo for details.
Gantt v4.3.0
Inactive tasks support
This version brings support for inactive tasks, tasks that do not affect scheduling of normal tasks. They do not push their active successors (but still pushes inactive ones) and do not roll up their (startDate, endDate, percentDone and effort) attributes to their active parents (but still do that for inactive ones).
Activating or deactivating a summary task also toggles the state of all its children. Activating a child task in turn activates its summary tasks and deactivating all child tasks also deactivates their summary task.
Inactive tasks do not affect resource allocation and are thus not taken into account by the resource histogram.
For more details please see the "Inactive tasks" guide.
Support for resources grouping in the histogram
The histogram now supports resource grouping. It collects resources info and displays the aggregated allocation on the group level.
Please note that GroupSummary feature is still not supported (subscribe to this ticket to stay informed).