Posted 22 March 2018, 1:46 pm EST
I am trying to use merge header as mentioned in column group in sample explorer
and in that example it is mentioned that we have to create the structure of header in component. for example:
w3Columns = [{
header: ’ ',
binding: ‘gender’
}, {
header: ‘Average’,
columns: [{
header: ‘Height’,
binding: ‘height’,
format: ‘n1’
}, {
header: ‘Weight’,
binding: ‘weight’,
format: ‘n3’
}]
}, {
header: ‘Red Eyes’,
binding: ‘red’,
format: ‘p0’
}];
the difficult part for me is I cannot use ngIf in some columns since the header and binding property must be declared in component not in html
is there any way that we can make merge header in html such as using col span or row span so I can still declare every column in html and I can still use ngIf ?
