I am using Tabulator in Angular.
I have added my own processing in headerClick, but I don’t know how to write the test code for that.
column: any[] = [
{title:"Name",
field:"name",
width:150,
headerClick: (e:any, column:any) => {
// here
}
},
];
private drawTable(): any {
var tabulator = new Tabulator(this.tab, {
data: this.tableData,
reactiveData:true,
columns: this.column,
layout: 'fitData',
});
document.getElementById('my-tabular-table').appendChild(this.tab);
return tabulator
}
If anyone knows, I would like to know.