glideapps / glideapps/glide-data-grid

Add data export hooks that allow downloading data as CSV, excel and pdf

Open
#844 0 comments 3 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.