Is there a button that i can export the table's data to CSV or PDF?
Closed this issue · 1 comments
yulingding commented
Thanks
connorlanigan commented
Hello,
the Table component only displays data, it does not support exporting data.
You can place a Button in the header
slot of the Table using the Header component to trigger your own export function. You'll have to convert and export your data to CSV or PDF yourself.
Example:
<Table
header={
<Header
actions={
<Button onClick={() => yourExportFunction()}>Export as CSV</Button>
}>
Data
</Header>
}
// ... other Table properties ...
/>