We are trying to make certain field (title) read-only in the Gantt task editor. Below is the sample code
private createFormGroup(dataItem: GanttTask): FormGroup {
return new FormGroup({
id: new FormControl(dataItem.id),
start: new FormControl(dataItem.start),
end: new FormControl(dataItem.end),
completionRatio: new FormControl(dataItem.completionRatio),
title: new FormControl(
//title: new FormControl(dataItem.title), });
}
Basically this change makes the field not display at all.