I'm creating an angular-gantt table, and I would like to change columns headers. I saw the attributes columns and headers in the plugin Table but I don't understand how to use these.
You can see my gantt chart here :
I need to change the Name label and I tried some things :
controller.ts
this.options = {
data: [],
viewScale: 'hour',
headers: ['day', 'hour'],
tableHeader: {
'model.name': 'jour'
},
headersFormats: {
day: 'dddd',
hour: 'HH:mm'
},
sortMode: 'name',
columns: ['jour'],
}
View.html
<div gantt data="employeeviewctrl.ganttData"
headers="employeeviewctrl.options.headers"
headers-formats="employeeviewctrl.options.headersFormats"
sort-mode="employeeviewctrl.options.sortMode"
columns=[model.jour]>
<gantt-table enabled="true"
headers="employeeviewctrl.options.headerTable">
</gantt-table>
<gantt-tooltips enabled="true">
</gantt-tooltips>
</div>
Do you have any ideas ?
Thanks in advance for your help :)