Timeline
12 Sep 20251 minute to read
Configures the Timeline of the gantt.
Methods
calculateDateExcludingNonWorkingDays
Calculates a date by considering a given distance in pixels and excluding non-working days.
This function takes into account the width of each day in the Gantt chart as well as non-working days to compute the resulting date from a specified pixel position.
It returns the date that corresponds to the pixel distance from pStartDate.
| Parameter | Type | Description |
|---|---|---|
| left | number |
The distance in pixels from the start date to calculate the date. |
| pStartDate | Date |
The start date from which to calculate the resulting date. |
Returns Date
calculateNonWorkingDaysBetweenDates
Calculates the total number of non-working days between two given dates.
| Parameter | Type | Description |
|---|---|---|
| startDate | Date |
The start date of the period to check for non-working days. |
| endDate | Date |
The end date of the period to check for non-working days. |
Returns number