这篇文章给大家讲解 dhtmlxGantt可以加载或支持哪些数据格式。
带有集合的JSON
JSON 数据可以在数据对象的“集合”属性中包含任意数量的附加数组。代码如下所示:
{ "tasks":[ {"id":"1", "text":"Project #2", "start_date":"01-04-2020", "duration":18, "progress":0.4, "open": true}, {"id":"2", "text":"Task #1", "start_date":"02-04-2020", "duration":8, "progress":0.6, "parent":"1"}, {"id":"3", "text":"Task #2", "start_date":"11-04-2020", "duration":8, "progress":0.6, "parent":"1"}