Hi,
I have a custom column which is extending from DurationColumn (which is by the way not documented but just mentioned somewhere else in the documentation)
/* istanbul ignore file */
import {
DurationColumn,
} from "bryntum-gantt/gantt.umd.min";
export default class StatusColumn extends DurationColumn {
static get type() {
return "estimatedDuration";
}
renderer({
record: {
originalData: { estimatedDuration, duration },
},
}) {
const durationFieldData = {
width: 200,
label: "Duration",
value: "5 days",
unit: "days",
};
// return new DurationField(durationFieldData);
if (estimatedDuration) {
return estimatedDuration;
}
if (duration) {
return duration;
}
return "";
}
}
Setting for this column are set like this:
{
type: "estimatedDuration",
text: intl.formatMessage(planningTableHead.projectTableDuration),
locked: false,
minWidth: 115,
editor: true,
draggable: false,
unit: "days",
listeners: {
catchAll(event) {
console.log(event);
// All events on the button will pass through here
},
},
},
However, it is impossible for us to edit the value of this column. The column is editable, but changing it value will reset to the previous one directly and no event is called (hence the usage of the catchAll) only destroy events.
What am I doing wrong?