Hi Team,
I am creating custom columns in addnew using processComboStoreConfig hook and able to successfully add the columns using below code -
import { Gantt, StringHelper } from '../../build/gantt.module.js?474872';
import shared from '../_shared/shared.module.js?474872';
new Gantt({
appendTo : 'container',
dependencyIdField : 'sequenceNumber',
rowHeight : 45,
tickSize : 45,
barMargin : 8,
project : {
autoLoad : true,
transport : {
load : {
url : '../_datasets/launch-saas.json'
}
}
},
columns : [
{ type : 'name', width : 250 },
{
type: 'addnew',
width : 200,
processComboStoreConfig: ({config, column}) => {
config.data.push([{
text : 'Test',
value : {
text : 'Test',
type : 'name',
width : 200,
}
}])
}
},
],
// Custom task content, display task name on child tasks
taskRenderer({ taskRecord }) {
if (taskRecord.isLeaf && !taskRecord.isMilestone) {
return StringHelper.encodeHtml(taskRecord.name);
}
}
});
But when I try to add those columns by right-click on a column -> click columns I am not able to view the newly added columns. I am using vanillaJS version of gantt.
How to resolve this issue?
Thanks