Hello,
I'd like to narrow the selectable options for DependencyTypes, that is to remove everything but EndToStart from the TaskEditor tabs. How to achieve this functionality?
Using Gantt 2.1.9.
regards,
Norbi
Hello Norbi,
There is no a config to define what dependency types are supported. I've opened a feature request https://github.com/bryntum/support/issues/2230
Meanwhile you can try to filter out the dependencies in all UI components. For example to filter out them from TaskEditor:
new Gantt({
listeners : {
beforeTaskEditShow({ editor, taskRecord }) {
const
{ successorsTab } = editor.widgetMap,
{ grid } = successorsTab.widgetMap,
typeColumn = grid.columns.findRecord('field', 'type'),
{ store } = typeColumn.editor;
if (!store.isFiltered) {
store.filter(r => r.text == 'End-to-Start');
}
}
},
See the guide https://www.bryntum.com/docs/gantt/#guides/customization/taskedit.md
and the docs https://www.bryntum.com/docs/gantt/#SchedulerPro/feature/TaskEdit#event-beforeTaskEditShow
Cheers!
Pavlo Miklashevych
Sr. Frontend Developer