glideapps / glideapps/glide-data-grid
Add data export hooks that allow downloading data as CSV, excel and pdf
Open
package:source
type:enhancement
- Dominant language
- TypeScript
- Stars
- 5.3k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Add `useCsvExport`, `useExcelExport`, `usePdfExport` hooks to the `source` package to make implementing a data export feature easier.
Proposed API for `useCsvExport`:
```typescript
type CsvExportReturn = {
exportToCsv: (
fileName: string,
delimiter?: string,
rowDelimiter?: string,
quoteChar?: string,
escapeChar?: string
) => void
}
function useCsvExport(
getCellContent: DataEditorProps["getCellContent"],
columns: GridColumn[],
numRows: number
): CsvExportReturn {
...
}
```
Contributor guide
Assessment
This issue has not been assessed yet.