When adding a new Task, is there a simple way of converting that task to a milestone?
For example, when a user clicks on onAddTaskClick(), instead of creating a task, I would like to create a milestone instead ? Thanks.
public async onAddTaskClick(): Promise<any> {
const
gantt = this.gantt,
added = gantt.taskStore.rootNode.appendChild({
id: Guid.create().toString(),
name: 'New task',
duration: 1,
system: this.storageService?.project?.System,
worktype: this.storageService?.project?.DivisionName
})
;
gantt.features.cellEdit.startEditing({
record: added,
field: 'name'
});
}