Hi,
I am using bryntum gantt,
When I right click the menu open for some operations like: add, delete the task.
i click on add data
and i am trying to fetch it in ----- onBeforeTaskAdd method.
when i console the whole data like
const addTaskFunc = async (data: any) => {
console.log(data.taskRecord._data);
}
the method returns the output looks like.
so i the data is inside the _data parameter of the object, which we can see acc. to the image.
but when i try to console like.
const addTaskFunc = async (data: any) => {
console.log(data.taskRecord._data.parentId);
}
it gives me undefined.
I want to fetch parameters from _data
please let me know what mistake i am doing.
or if there is any other approch to fetch data when adding new task?