Hi,
Yeah, You couldn't change the name it's mentioned in the docs the link I provided above
A callback function or a set of name: value properties to apply on tasks created using the task context menu. Be aware that name value will be ignored since it's auto-generated and may be configured with localization.
To change the task name you could use the https://bryntum.com/products/gantt/docs/api/Gantt/feature/TaskMenu feature for this
features : {
taskMenu : {
items : {
add : {
menu : {
addTaskBelow : {
onItem({ source : gantt, taskRecord }) {
gantt.addTaskBelow(taskRecord, { data : { name : 'My custom name' } });
console.log('works');
}
}
}
}
}
}
}