2.2.2. Gantt
- 1 Overview
- 1.1 Project start
- 1.2 Navigation
- 1.3 Styling settings
- 1.3.1 Auto height
- 1.3.2 Full height class
Overview
Besides specifying the synchronisation and the license key there are several other general aspects about the widget that can be configured.
Project start
Setting this date will constrain all other tasks in the project to start no earlier than it. If this date is not provided, it will be calculated as the earliest date among all tasks.
Adjusting the project's start date will redefine the start dates for all tasks that are not fixed to a particular timeframe through a constraint date or dependency. Consequently, this change can affect numerous tasks within your project. Additionally, if a task that is normally constrained but now falls before the revised project start date, its start date will also be adjusted, along with the start dates of all its subsequent dependencies.
Navigation
The default navigation can be disabled when you want to create your own navigation in Mendix or when you want to hide the controls.
You can also enable a custom header. This will add an area for custom widgets that will have a container with a class “b-is-fetching” when the widget is loading data.
The is loading attribute can be used to conditionally hide elements in your UI and is optional.
Styling settings
Here you can configure various styling options.
Auto height
Auto height will increase the height of the widget based on it’s contents. This is generally not recommended as it will decrease performance for large datasets.
When this feature is disabled the height will need to be set by CSS. This will also cause a scrollbar in the widget when the elements exceed it’s maximum height and it will make the time axis sticky (e.g. see how the timeaxis overlaps the top task below):
Full height class
This will simply add a helper class that makes sure the widget will try to fill up all the horizontal height available.