@nocopypaste/vue-grid 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -2
- package/CHANGELOG.md +13 -0
- package/README.md +49 -27
- package/agent/api.json +14 -2
- package/agent/api.md +4 -2
- package/dist/agent/api.js +14 -2
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js +161 -159
- package/dist/components/VGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useGridExport.js +83 -51
- package/dist/composables/useGridExport.js.map +1 -1
- package/dist/core/xlsx.js +172 -0
- package/dist/core/xlsx.js.map +1 -0
- package/dist/features/export.js.map +1 -1
- package/dist/index.js +55 -54
- package/dist/types/composables/useGridExport.d.ts +5 -1
- package/dist/types/core/xlsx.d.ts +34 -0
- package/dist/types/features/export.d.ts +5 -4
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +14 -0
- package/llms-full.txt +57 -31
- package/llms.txt +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -64,7 +64,7 @@ runs in the [live examples](https://eboye.github.io/eboye-vue-grid/), each with
|
|
|
64
64
|
| Rows that stay on top / bottom | `rowPinningFeature` | `v-model:pinned-rows="{ top: [id], bottom: [] }"`, `pinRow()`, `pinned-top-rows` |
|
|
65
65
|
| A totals row (sum, avg, …) | `aggregationFeature` | column `aggregate: 'sum' \| 'avg' \| 'min' \| 'max' \| 'count' \| fn`; `totals` (or `'top'`) |
|
|
66
66
|
| Group rows by a column ("by status, then city") | `rowGroupingFeature` | `v-model:group-by="['status', 'city']"`, `groups-expanded`; column `groupable: true` (header menu), `groupValue: (row) => …` (e.g. month); `aggregate` shows per group |
|
|
67
|
-
| Download CSV, copy rows / cells (Ctrl+C)
|
|
67
|
+
| Download CSV or Excel, copy rows / cells (Ctrl+C) | `exportFeature` | `grid.exportCsv()`, `getCsv()`, `exportXlsx()`, `getXlsx()`, `copyRows()`, `@copy`; column `exportValue`, `exportable: false` |
|
|
68
68
|
| Row / selection counts, sum of the selected rows | `statusBarFeature` | `status-bar` (or `{ summary: ['total'], aggregates?: ['sum', 'avg'] }`); `#status-bar="{ rowCount, selectedCount, summary, … }"` |
|
|
69
69
|
| Arrow-key navigation (ARIA grid) | `keyboardNavigationFeature` | — |
|
|
70
70
|
| Remember column layout | — | `storage="orders-grid"` (localStorage key) |
|
|
@@ -365,7 +365,7 @@ visible column and runs across the next ones up to the first with an `aggregate`
|
|
|
365
365
|
column it drops the column name and ellipsizes the value (full label as tooltip), so give it room
|
|
366
366
|
where the value matters. `#group-<key>="{ value, count }"` renders a group's value yourself.
|
|
367
367
|
|
|
368
|
-
### CSV export and copy
|
|
368
|
+
### CSV / Excel export and copy
|
|
369
369
|
|
|
370
370
|
```vue
|
|
371
371
|
<script setup lang="ts">
|
|
@@ -398,6 +398,8 @@ const grid = ref<VGridExposed>()
|
|
|
398
398
|
raw values; `copyRows` and Ctrl/⌘+C to the selected rows as displayed, tab-separated. Options:
|
|
399
399
|
`rows: 'filtered' | 'all' | 'page' | 'selected'`, `columns: [keys]`, `values: 'raw' | 'formatted'`,
|
|
400
400
|
`header`, `totals`, `children`, `delimiter`. `toCsv(rows, columns)` works without a grid.
|
|
401
|
+
`exportXlsx({ filename, sheetName })` / `getXlsx()` (a Promise) write an Excel file with typed cells
|
|
402
|
+
(numbers, dates, booleans) and number formats from the renderers; `toXlsx(rows, columns)` without a grid.
|
|
401
403
|
|
|
402
404
|
### Row actions and context menu
|
|
403
405
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0 — 2026-11-24
|
|
4
|
+
|
|
5
|
+
**Excel export** (export feature): `grid.exportXlsx()` downloads the rows as an `.xlsx` workbook
|
|
6
|
+
and `grid.getXlsx()` resolves to it as a `Blob`. They take the CSV options (which rows, columns,
|
|
7
|
+
raw or formatted values, header, totals, sub-grid rows) plus `sheetName`. Cells are typed:
|
|
8
|
+
numbers, booleans and dates stay what they are, so the sheet can sum and sort them, with number
|
|
9
|
+
formats from the columns' renderers (money `#,##0.00`, percentages, `yyyy-mm-dd` dates and date-
|
|
10
|
+
times in the grid's time zone). The header is bold and frozen, the totals line bold, and column
|
|
11
|
+
widths follow the content. Text is never written as a formula. The writer has no dependencies and
|
|
12
|
+
loads the first time you export (2.9 kB gzip); the export feature itself grows by 0.3 kB gzip.
|
|
13
|
+
`toXlsx(rows, columns)` writes a workbook without a grid. New exported types `XlsxExportOptions`,
|
|
14
|
+
`ToXlsxOptions`, `XlsxFormat`.
|
|
15
|
+
|
|
3
16
|
## 0.5.0 — 2026-11-24
|
|
4
17
|
|
|
5
18
|
**Status bar** (`statusBarFeature`): `status-bar` adds a bar under the grid with the rows that pass
|
package/README.md
CHANGED
|
@@ -130,7 +130,7 @@ an opt-in feature:
|
|
|
130
130
|
| `rowPinningFeature` | `v-model:pinned-rows` / `pinRow()`: rows that stay in view above or below the body, plus `pinned-top-rows` / `pinned-bottom-rows` for rows that aren't in the data |
|
|
131
131
|
| `aggregationFeature` | Column `aggregate` (`sum`, `avg`, `min`, `max`, `count`, a function) and `totals`: a sticky totals row over the filtered rows |
|
|
132
132
|
| `rowGroupingFeature` | `v-model:group-by`: rows grouped by one or more columns into collapsible group rows with the value, row count and aggregates; Group by / Ungroup in the header menu for `groupable` columns |
|
|
133
|
-
| `exportFeature` | `exportCsv()` / `getCsv()` / `copyRows()`, Ctrl/⌘+C for the selected rows or the focused cell, the `copy` event; column `exportValue` / `exportable`
|
|
133
|
+
| `exportFeature` | `exportCsv()` / `getCsv()`, `exportXlsx()` / `getXlsx()` (Excel, typed cells), `copyRows()`, Ctrl/⌘+C for the selected rows or the focused cell, the `copy` event; column `exportValue` / `exportable` |
|
|
134
134
|
| `statusBarFeature` | `status-bar`: a bar under the grid with the rows that pass the filters, the selected rows, the active filters (with Clear), and `{ summary: [keys] }` columns' sum and average over the selected rows; the `#status-bar` slot |
|
|
135
135
|
|
|
136
136
|
```ts
|
|
@@ -175,33 +175,33 @@ what you import.
|
|
|
175
175
|
|
|
176
176
|
| Import (minified / gzip, Vue excluded) | Initial chunk |
|
|
177
177
|
| ---------------------------------------------------------------------------- | ------------------ |
|
|
178
|
-
| `VGrid` (no features) | 40.
|
|
179
|
-
| `VGrid` + `sortingFeature` | 41.
|
|
180
|
-
| `VGrid` + `filteringFeature` |
|
|
181
|
-
| `VGrid` + `serverDataFeature` | 41.
|
|
182
|
-
| `VGrid` + `paginationFeature` | 40.
|
|
183
|
-
| `VGrid` + `selectionFeature` | 44.
|
|
184
|
-
| `VGrid` + `subGridsFeature` | 42.
|
|
185
|
-
| `VGrid` + `menusFeature` | 50.
|
|
186
|
-
| `VGrid` + `columnReorderFeature` | 44.
|
|
187
|
-
| `VGrid` + `columnPinningFeature` | 43.
|
|
188
|
-
| `VGrid` + `virtualScrollingFeature` | 46.
|
|
189
|
-
| `VGrid` + `columnVisibilityFeature` | 40.
|
|
190
|
-
| `VGrid` + `keyboardNavigationFeature` | 43.
|
|
191
|
-
| `VGrid` + `columnResizingFeature` | 43.
|
|
192
|
-
| `VGrid` + `columnGroupsFeature` | 41.
|
|
193
|
-
| `VGrid` + `rowPinningFeature` | 45.
|
|
194
|
-
| `VGrid` + `aggregationFeature` | 45.
|
|
195
|
-
| `VGrid` + `rowGroupingFeature` | 50.
|
|
196
|
-
| `VGrid` + `exportFeature` |
|
|
197
|
-
| `VGrid` + `statusBarFeature` | 42.
|
|
198
|
-
| `VGrid` + `allFeatures` + `VGridSearch` |
|
|
199
|
-
| `VGrid` + `currencyRenderer` | 41.
|
|
200
|
-
| `VGrid` + `VGridPagination` + `VGridColumnMenu` | 47.
|
|
178
|
+
| `VGrid` (no features) | 40.4 kB / 14.1 kB |
|
|
179
|
+
| `VGrid` + `sortingFeature` | 41.2 kB / 14.3 kB |
|
|
180
|
+
| `VGrid` + `filteringFeature` | 51.0 kB / 17.8 kB |
|
|
181
|
+
| `VGrid` + `serverDataFeature` | 41.8 kB / 14.6 kB |
|
|
182
|
+
| `VGrid` + `paginationFeature` | 40.6 kB / 14.1 kB |
|
|
183
|
+
| `VGrid` + `selectionFeature` | 44.6 kB / 15.5 kB |
|
|
184
|
+
| `VGrid` + `subGridsFeature` | 42.8 kB / 14.9 kB |
|
|
185
|
+
| `VGrid` + `menusFeature` | 50.9 kB / 17.6 kB |
|
|
186
|
+
| `VGrid` + `columnReorderFeature` | 44.1 kB / 15.3 kB |
|
|
187
|
+
| `VGrid` + `columnPinningFeature` | 43.4 kB / 15.1 kB |
|
|
188
|
+
| `VGrid` + `virtualScrollingFeature` | 46.2 kB / 16.2 kB |
|
|
189
|
+
| `VGrid` + `columnVisibilityFeature` | 40.6 kB / 14.1 kB |
|
|
190
|
+
| `VGrid` + `keyboardNavigationFeature` | 43.2 kB / 15.1 kB |
|
|
191
|
+
| `VGrid` + `columnResizingFeature` | 43.7 kB / 15.2 kB |
|
|
192
|
+
| `VGrid` + `columnGroupsFeature` | 41.7 kB / 14.5 kB |
|
|
193
|
+
| `VGrid` + `rowPinningFeature` | 45.4 kB / 15.4 kB |
|
|
194
|
+
| `VGrid` + `aggregationFeature` | 45.6 kB / 15.5 kB |
|
|
195
|
+
| `VGrid` + `rowGroupingFeature` | 50.2 kB / 16.9 kB |
|
|
196
|
+
| `VGrid` + `exportFeature` | 45.0 kB / 15.8 kB |
|
|
197
|
+
| `VGrid` + `statusBarFeature` | 42.8 kB / 15.0 kB |
|
|
198
|
+
| `VGrid` + `allFeatures` + `VGridSearch` | 107.7 kB / 36.3 kB |
|
|
199
|
+
| `VGrid` + `currencyRenderer` | 41.8 kB / 14.5 kB |
|
|
200
|
+
| `VGrid` + `VGridPagination` + `VGridColumnMenu` | 47.2 kB / 16.3 kB |
|
|
201
201
|
| `sortRows` only | 0.7 kB / 0.4 kB |
|
|
202
202
|
| `toCsv` only | 1.1 kB / 0.6 kB |
|
|
203
|
-
| everything |
|
|
204
|
-
| `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) |
|
|
203
|
+
| everything | 160.4 kB / 51.3 kB |
|
|
204
|
+
| `validateGridConfig` (`@nocopypaste/vue-grid/agent`, never in an app bundle) | 70.2 kB / 19.1 kB |
|
|
205
205
|
|
|
206
206
|
With `filteringFeature`, the filter popover body and the filter-row editors are **on-demand
|
|
207
207
|
chunks**: they load the first time a popover opens or `filter-row` is on. With
|
|
@@ -863,7 +863,7 @@ same grouping elsewhere.
|
|
|
863
863
|
|
|
864
864
|
## Export and copy
|
|
865
865
|
|
|
866
|
-
`exportFeature` turns the grid's rows into CSV and copies them to the clipboard.
|
|
866
|
+
`exportFeature` turns the grid's rows into CSV or an Excel workbook and copies them to the clipboard.
|
|
867
867
|
|
|
868
868
|
```vue
|
|
869
869
|
<script setup lang="ts">
|
|
@@ -922,6 +922,28 @@ Without the grid: `toCsv(rows, columns, { delimiter, header, guard })` writes CS
|
|
|
922
922
|
and column definitions (raw values, `exportValue`, `exportable`); `toDelimited(table)`,
|
|
923
923
|
`plainText(value)` and `guardFormula(text)` are its parts.
|
|
924
924
|
|
|
925
|
+
### Excel (.xlsx)
|
|
926
|
+
|
|
927
|
+
**`exportXlsx(options)`** downloads an Excel workbook (`filename`, default `export.xlsx`) and
|
|
928
|
+
**`getXlsx(options)`** resolves to it as a `Blob`; both take the options above (but `delimiter` and
|
|
929
|
+
`guard`) plus `sheetName`.
|
|
930
|
+
|
|
931
|
+
```ts
|
|
932
|
+
await grid.value?.exportXlsx({ filename: 'orders.xlsx', sheetName: 'Orders', totals: true })
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
- **Typed cells**: numbers stay numbers, booleans booleans, and dates are Excel dates, so the sheet
|
|
936
|
+
can sum, sort and filter them. Number formats follow the renderer: `currency` (and `change` with
|
|
937
|
+
`currency`) → `#,##0.00`, a percent `number` → `0.00%`, `date` → `yyyy-mm-dd`, `datetime` →
|
|
938
|
+
`yyyy-mm-dd hh:mm`, in the grid's `time-zone` (date-only values stay that day).
|
|
939
|
+
- A bold header frozen at the top, the totals as a bold last line, column widths from the content.
|
|
940
|
+
- Text is written as text, never as a formula. `values: 'formatted'` writes the cells as shown.
|
|
941
|
+
- The writer (2.9 kB gzip) loads the first time you export; it has no dependencies.
|
|
942
|
+
|
|
943
|
+
Without the grid: `toXlsx(rows, columns, { sheetName, header, timeZone, formats })` returns the
|
|
944
|
+
file's bytes (`Uint8Array`); `formats` overrides the guess per column key (`'money'`, `'percent'`,
|
|
945
|
+
`'date'`, `'datetime'`, `'number'`, `'auto'`).
|
|
946
|
+
|
|
925
947
|
## Status bar
|
|
926
948
|
|
|
927
949
|
`statusBarFeature` adds a bar under the grid, like a spreadsheet's:
|
package/agent/api.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@nocopypaste/vue-grid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"component": "VGrid",
|
|
5
5
|
"props": [
|
|
6
6
|
{
|
|
@@ -574,6 +574,18 @@
|
|
|
574
574
|
"required": true,
|
|
575
575
|
"description": "Downloads the rows as a CSV file (`filename`, default `export.csv`; UTF-8 with a BOM). Export feature."
|
|
576
576
|
},
|
|
577
|
+
{
|
|
578
|
+
"name": "getXlsx",
|
|
579
|
+
"type": "Promise<Blob>",
|
|
580
|
+
"required": true,
|
|
581
|
+
"description": "The rows as an Excel workbook (.xlsx): typed cells (numbers, dates, booleans), number formats from the columns' renderers, a bold frozen header. The writer loads on demand. Export feature."
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "exportXlsx",
|
|
585
|
+
"type": "Promise<void>",
|
|
586
|
+
"required": true,
|
|
587
|
+
"description": "Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature."
|
|
588
|
+
},
|
|
577
589
|
{
|
|
578
590
|
"name": "copyRows",
|
|
579
591
|
"type": "Promise<boolean>",
|
|
@@ -888,7 +900,7 @@
|
|
|
888
900
|
{
|
|
889
901
|
"id": "export",
|
|
890
902
|
"export": "exportFeature",
|
|
891
|
-
"description": "CSV export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
|
|
903
|
+
"description": "CSV and Excel export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.exportXlsx()` / `grid.getXlsx()` write an Excel workbook with typed cells (the writer loads on demand), `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
|
|
892
904
|
"props": [],
|
|
893
905
|
"columnOptions": [
|
|
894
906
|
"exportValue",
|
package/agent/api.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @nocopypaste/vue-grid 0.
|
|
1
|
+
# @nocopypaste/vue-grid 0.6.0 — API reference
|
|
2
2
|
|
|
3
3
|
> Generated from the TypeScript sources (`scripts/gen-agent.mjs`). Machine-readable: `agent/api.json`, `agent/grid-config.schema.json`.
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
14
14
|
| `columnReorderFeature` | Column reordering: drag a header (mouse, pen, touch), Alt+←/→ on a focused header, and the header menu's Move left / Move right. Columns opt out with `reorderable: false`. The order is part of `v-model:column-state` and persisted with `storage`; `<VGridColumnMenu>` works without it. | | `reorderable` |
|
|
15
15
|
| `columnResizingFeature` | Column resizing: drag a header's edge (mouse, pen, touch), use ←/→ on the focused edge (Alt+Shift+←/→ on a header with keyboard navigation), or double-click the edge to fit the content. `minWidth` / `maxWidth` bound it; columns opt out with `resizable: false`. Widths are kept in `columnState.widths` and persisted with `storage`. The header menu gains Fit width / Reset width. | | `maxWidth` `resizable` |
|
|
16
16
|
| `columnVisibilityFeature` | Column visibility: `hidden: true` columns, `columnState.hidden` (persisted with `storage`), the header menu's Hide column item and `<VGridColumnMenu>`'s checkboxes. Columns opt out with `hideable: false`. Without it, every column shows. | | `hidden` `hideable` |
|
|
17
|
-
| `exportFeature` | CSV export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn. | | `exportValue` `exportable` |
|
|
17
|
+
| `exportFeature` | CSV and Excel export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.exportXlsx()` / `grid.getXlsx()` write an Excel workbook with typed cells (the writer loads on demand), `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn. | | `exportValue` `exportable` |
|
|
18
18
|
| `filteringFeature` | Filtering: header funnels with typed filter popovers on `filterable` columns, the filter row, `<VGridSearch>`, the filter items of the header menu, `v-model:filters` and filter persistence. The popover body and the filter-row editors load on demand (own chunks). | `filterMode` `filterRow` `filterStorage` `noMatchText` `filters` | `filterable` `filter` `filterValue` `filterFn` `filterComponent` `searchable` |
|
|
19
19
|
| `keyboardNavigationFeature` | Keyboard navigation (the ARIA grid pattern): the grid is one tab stop, arrow keys / Home / End / PageUp / PageDown move between cells, Enter activates a cell's control, Space selects a row, →/← expand and collapse, Alt+←/→ move a column, ContextMenu / Shift+F10 open the cell menu. Without it the grid is an ARIA `table`: its own controls (sort buttons, expanders, checkboxes, filter buttons) sit in the normal Tab order instead. | | |
|
|
20
20
|
| `menusFeature` | Context menus: the built-in header menu (sort, filter, pin, move, hide, reset, your own items via `header-menu`) and body-cell menus (`context-menu`), opened by right-click, the ContextMenu key or Shift+F10. Without it the browser's own menu shows. The standalone `<VGridMenu>` and the `actions-menu` renderer don't need it. | `contextMenu` `headerMenu` | |
|
|
@@ -140,6 +140,8 @@ Opt-in: pass them as `:features="[…]"` on `<VGrid>` or once via `createVueGrid
|
|
|
140
140
|
| `clearSelection` | `void` | | Clears the selection, "all matching rows" included. Selection feature. |
|
|
141
141
|
| `getCsv` | `string` | | The rows as CSV text: the filtered, sorted rows, visible columns, raw values. Export feature. |
|
|
142
142
|
| `exportCsv` | `void` | | Downloads the rows as a CSV file (`filename`, default `export.csv`; UTF-8 with a BOM). Export feature. |
|
|
143
|
+
| `getXlsx` | `Promise<Blob>` | | The rows as an Excel workbook (.xlsx): typed cells (numbers, dates, booleans), number formats from the columns' renderers, a bold frozen header. The writer loads on demand. Export feature. |
|
|
144
|
+
| `exportXlsx` | `Promise<void>` | | Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature. |
|
|
143
145
|
| `copyRows` | `Promise<boolean>` | | Copies rows to the clipboard as tab-separated text (pastes as cells into spreadsheets): the selected rows by default, as displayed, no header. Resolves `false` if nothing was copied. Export feature. |
|
|
144
146
|
|
|
145
147
|
## `ColumnDef<T>`
|
package/dist/agent/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/agent/api.json
|
|
2
|
-
var e = "0.
|
|
2
|
+
var e = "0.6.0", t = "VGrid", n = [
|
|
3
3
|
{
|
|
4
4
|
name: "rows",
|
|
5
5
|
type: "readonly T[]",
|
|
@@ -567,6 +567,18 @@ var e = "0.5.0", t = "VGrid", n = [
|
|
|
567
567
|
required: !0,
|
|
568
568
|
description: "Downloads the rows as a CSV file (`filename`, default `export.csv`; UTF-8 with a BOM). Export feature."
|
|
569
569
|
},
|
|
570
|
+
{
|
|
571
|
+
name: "getXlsx",
|
|
572
|
+
type: "Promise<Blob>",
|
|
573
|
+
required: !0,
|
|
574
|
+
description: "The rows as an Excel workbook (.xlsx): typed cells (numbers, dates, booleans), number formats from the columns' renderers, a bold frozen header. The writer loads on demand. Export feature."
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: "exportXlsx",
|
|
578
|
+
type: "Promise<void>",
|
|
579
|
+
required: !0,
|
|
580
|
+
description: "Downloads the rows as an Excel file (`filename`, default `export.xlsx`). Export feature."
|
|
581
|
+
},
|
|
570
582
|
{
|
|
571
583
|
name: "copyRows",
|
|
572
584
|
type: "Promise<boolean>",
|
|
@@ -862,7 +874,7 @@ var e = "0.5.0", t = "VGrid", n = [
|
|
|
862
874
|
{
|
|
863
875
|
id: "export",
|
|
864
876
|
export: "exportFeature",
|
|
865
|
-
description: "CSV export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
|
|
877
|
+
description: "CSV and Excel export and copying: `grid.exportCsv()` downloads the filtered, sorted rows as a CSV file, `grid.getCsv()` returns the text, `grid.exportXlsx()` / `grid.getXlsx()` write an Excel workbook with typed cells (the writer loads on demand), `grid.copyRows()` copies rows as tab-separated text, and Ctrl/⌘+C copies the selected rows, else the focused cell, as displayed. Columns can set `exportValue` and `exportable: false`. Without it those methods only warn.",
|
|
866
878
|
props: [],
|
|
867
879
|
columnOptions: ["exportValue", "exportable"]
|
|
868
880
|
},
|