I am working with React Js for Frontend application. I have one table structure like below-
<BootstrapTable
classes="table"
data={
this.props.School
}
columns={[
{
dataField: 'Id',
text: 'ID'
},
{
dataField: 'firstName',
text: 'First Name',
sort: false,
},
{
dataField: 'lastName',
text: 'Last Name',
sort: false
},
{
dataField: 'rollNo',
text: 'Roll Number',
sort: false
},
]}
/>
And the table is showing like below-
But I have new requirement to show table structure (headers + sub-headers) like below-
2
Answers
Both Tables are same, output table & desired output table is same, give some breif
To fulfill your requirement, for showing headers + sub-headers, you can refer to the below react code snippet: