This repository was archived by the owner on Mar 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
How to Add Table Footer? #26
Copy link
Copy link
Open
Description
Hi is there a way to add a footer to a table lets say a Total Count? I tried this but does not work:
<Table data={this.state.LstEntities}>
<TableHeader>
<TableCell weighting={0.6}>
Entity
</TableCell>
<TableCell weighting={0.4}>
Count
</TableCell>
</TableHeader>
<TableBody>
<DataTableCell style={pdfStyles.dataTableRow} weighting={0.6} getContent={(r: ISPColorCodedRecord) => r.Title} />
<DataTableCell style={pdfStyles.dataTableRow} weighting={0.4} getContent={(r: ISPColorCodedRecord) => { return this.GetRecordsByEntity(r.Id).length; }} />
</TableBody>
<TableRow>
<TableCell weighting={0.6}>
Total
</TableCell>
<TableCell weighting={0.4}>
{this.state.Records.length}
</TableCell>
</TableRow>
</Table>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request