Please see the attached demo, modified from the React TimeRanges demo.
It seems like a bug that the TImeRanges are not showing here, even though there are no tasks. Can you confirm if this behaviour is correct or not?
Thanks.
Please see the attached demo, modified from the React TimeRanges demo.
It seems like a bug that the TImeRanges are not showing here, even though there are no tasks. Can you confirm if this behaviour is correct or not?
Thanks.
It actually does show the timeranges. You can't see the timeranges because when you don't have a task in Gantt it sets the startDate of Gantt to the current date. And the timerange's date is on 2019
So to see the timeranges you just need to set the gantt's startDate to a date in 2019
.
You can set the date to this to see the timerages
ganttConfig = {
startDate : '2019-01-01'
}
Docs https://bryntum.com/products/gantt/docs/api/Gantt/view/Gantt#config-startDate