[REACT] Catch delete action in Predecessors tab
Posted: Mon May 29, 2023 3:19 pm
Hi guys!
Is there is a way to catch event by clicking on delete icon in Precessors tab?
Hi guys!
Is there is a way to catch event by clicking on delete icon in Precessors tab?
Hi,
Here is an example of how you could achieve it
listeners : {
beforeTaskEditShow({ editor }) {
editor.widgetMap.predecessorsTab.widgetMap.remove.on('click', () => console.log('event'))
},
once : true
},
Docs
https://bryntum.com/products/gantt/docs/api/SchedulerPro/feature/TaskEdit#event-beforeTaskEditShow
https://bryntum.com/products/gantt/docs/api/SchedulerPro/widget/taskeditor/PredecessorsTab
Thanks Tasnim!