Our state of the art Gantt chart


Post by kranthi05 »

Hi Team,

We need to make gantt to "Fixed duration" as default Schedulingmode.
Schedulingmode column is not required for us

Please let us how we can config above logic.

Thanks,
Kranthi


Post by Maxim Gorkovsky »

Hello.
You can try to override the task model field:

class MyTaskModel extends TaskModel {
  static get fields() {
    return [{ name : 'schedulingMode', defaultValue : 'FixedDuration' }]
  }
}

class Project = new ProjectModel({
  taskModelClass : MyTaskModel
})

Post Reply