bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Add ability to prevent Cut operation through config #10306

Open taauntik opened 1 week ago

taauntik commented 1 week ago

Forum post

Hi bryntum team I am using gantt v5.6.10. I'd like to disabled cut events in gantt. I can set the property Cut to false in the taskMenu configuration. However, it does not prevent users from using Ctrl+X on the keyboard to cut . I found that in the scheduler, users can be prevented from cutting by setting the cutEvent of eventMenu to false. However, eventMenuFeatures is not applicable in Gantt. Can you provide some assistance?

    taskMenu: {
        items:{
            cut:false,
            convertToMilestone: false,
            ...
        }
    }