Our state of the art Gantt chart


Post by sasha573 »

Hi guys!
Is there is a way to catch event by clicking on delete icon in Precessors tab?

deletePredecessor.png
deletePredecessor.png (45.25 KiB) Viewed 86 times

Post by tasnim »

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


Post by sasha573 »

Thanks Tasnim!


Post Reply