Page 1 of 1

[REACT] How to disable editing of task completion percentDone?

Posted: Thu Aug 18, 2022 12:37 pm
by caiyuan

Image

Image

I need to disable these two places


Re: [REACT] How to disable editing of task completion percentDone?

Posted: Thu Aug 18, 2022 12:46 pm
by tasnim

Hi,

Please check the docs :
https://bryntum.com/docs/gantt/api/Gantt/feature/TaskEdit#removing-a-built-in-item
https://bryntum.com/docs/gantt/api/SchedulerPro/feature/PercentBar

To remove the percentBar

new Gantt({
	features : {
		percentBar : false
	}
});

To remove the complete field from the task editor:

new Gantt({
	features : {
		taskEdit : {
			items : {
				generalTab : {
					items : {
						percentDone : false
					}
				}
			}
		}
	}
});

Good Luck :),
Tasnim