gregnb / gregnb/mui-datatables
Spike: Dynamic downloadOptions.filename
Open
Nobody has claimed this yet.
new feature
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 905
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to be able to generate a custom filename for download.
Use cases:
- add timestamp to file, ie. "tableDownload-20191203.csv"
- add active filters, ie. "jobs-SUCCEEDED.csv"
I imagine this could be done by extending the filename parameter to be able to receive a function similar to:
downloadOptions: {
filename: (tableState: MUIDataTableState):string => {}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating the downloadOptions.filename handling and the table-state type or entry point it uses. Done should support a function that derives a download filename from table state while retaining the existing filename behavior, with coverage for timestamps and active filters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100