gm-datagrid 0.1.6 → 0.1.9

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.
@@ -2,11 +2,15 @@ import { GridEngine } from '../wasm/core_engine';
2
2
  interface UseExportProps {
3
3
  engineRef: React.RefObject<GridEngine | null>;
4
4
  title: string;
5
+ /** When provided, only columns whose field is in this set are included in the export. */
6
+ exportableFields?: Set<string>;
5
7
  }
6
8
  /**
7
9
  * Triggers a Wasm-side Excel export and downloads the result as a .xlsx file.
10
+ * If `exportableFields` is provided the Wasm engine is asked to restrict the
11
+ * export to those columns only; otherwise all columns are exported.
8
12
  */
9
- export declare function useExport({ engineRef, title }: UseExportProps): {
13
+ export declare function useExport({ engineRef, title, exportableFields }: UseExportProps): {
10
14
  handleExport: () => void;
11
15
  };
12
16
  export {};