1.0.1 • Published 6 months ago

@dslab/ra-export-all-button v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

React-Admin Export All Button

Version Documentation Maintenance License: MIT

The Export All Button for React-Admin exports the current list with filters, sorting, and pagination settings applied.

Install

yarn install @dslab/ra-export-all-button

Usage

import { ExportAllButton } from '@dslab/ra-export-all-button';

const ListActions = () => (
    <TopToolbar>
        <ExportAllButton />
    </TopToolbar>
);

export const List = () => <List actions={<ListActions />}></List>;

Props

The button accepts the following props:

PropRequiredTypeDefaultDescription
maxResultsOptionalnumber10000Maximum number of records to export
perPageOptionalnumberperPage of the listNumber of records in each request
labelOptionalstring'ra.action.export'Label or translation message to use
iconOptionalReactElement<DownloadIcon>iconElement, e.g. <CommentIcon />
exporterOptionalFunction-Override the List exporter function
metaOptionalanyundefinedMetadata passed to the dataProvider

Author

SmartCommunityLab React-admin

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2023 SmartCommunityLab. This project is MIT licensed.

1.0.1

6 months ago

1.0.0

6 months ago