Header colspan in options
Header colspan in options
lucas_araujo
Posts: 12Questions: 5Answers: 0
I just migrated my code to Vue and am using the DataTables component like this:
<CustomDataTable
v-if="tableData.length > 0"
:data="tableData"
:columns="tableColumns"
ref="dataTableRef"
/>
But i have not found a way to use a ComplexHeader with this method, is there a way?
My objective:
This question has an accepted answers - jump to answer
Answers
I assume you are using
columns.title
to create the header. This only supports a single header row. From thecolumns.title
docs:Kevin
If you were to use our Vue component you can pass a
thead
in to theDataTable
component as the default slot, and it will use that as the table header.Allan