How can I trigger my own function when a user clicks on the Delete button in the BryntumResourceUtilization component? https://bryntum.com/products/gantt/examples/resourceutilization/
1) I would like to show/hide the Delete button based on conditions
2) I would like to prevent record deletion based on conditions and run my custom logic (API requests).
If it's difficult to achieve, how I can remove this button from the context menu? I can then add my custom "Delete" button in the "cellMenuFeature".
Did you mean "cellMenuFeature" instead of "taskMenuFeature"? I see an error message: 'taskMenuFeature' does not exist in type 'BryntumResourceUtilizationProps'. I added it to the "cellMenuFeature" and saw new "Delete Task" button but the default "Delete" button was not removed from the context menu.