How to add a new column from UI?

We want to have a add button on the right in headers in grid area, click on this button would allow to add a new column. How could be done with api support?

//This is not working…
gantt.config.columns.push({<column data});

//This opens light box to add task, which is not what we want
gantt.config.columns=[{<column data},{
“name” :“add”,
"width: “44”
}];

Hello,
both ways should work. You need to add an another object to the columns array in gantt configuration, just make sure you redraw gantt after doing itgantt.config.columns.push({<column data}); gantt.render();