1 | import {ColDef} from "./entities/colDef";
|
2 | import {Column} from "./entities/column";
|
3 | import {RowNode} from "./entities/rowNode";
|
4 | import {GridApi} from "./gridApi";
|
5 | import {ColumnApi} from "./columnController/columnApi";
|
6 |
|
7 | export interface BaseExportParams{
|
8 | skipHeader?: boolean;
|
9 | columnGroups?:boolean;
|
10 | skipFooters?: boolean;
|
11 | skipGroups?: boolean;
|
12 | skipPinnedTop?: boolean;
|
13 | skipPinnedBottom?: boolean;
|
14 | suppressQuotes?: boolean;
|
15 | columnKeys?: (string|Column)[]
|
16 | fileName?: string;
|
17 | allColumns?: boolean;
|
18 | onlySelected?: boolean;
|
19 | onlySelectedAllPages?: boolean;
|
20 | shouldRowBeSkipped?(params: ShouldRowBeSkippedParams): boolean;
|
21 | processCellCallback?(params: ProcessCellForExportParams): string;
|
22 | processHeaderCallback?(params: ProcessHeaderForExportParams): string;
|
23 | }
|
24 |
|
25 | export interface ExportParams<T> extends BaseExportParams{
|
26 | customHeader?: T;
|
27 | customFooter?: T;
|
28 | }
|
29 |
|
30 | export interface CsvExportParams extends ExportParams<string>{
|
31 | columnSeparator?: string;
|
32 | }
|
33 |
|
34 | export interface ShouldRowBeSkippedParams {
|
35 | node: RowNode,
|
36 | api: GridApi,
|
37 | context: any
|
38 | }
|
39 |
|
40 | export interface ProcessCellForExportParams {
|
41 | value: any,
|
42 | node: RowNode,
|
43 | column: Column,
|
44 | api: GridApi,
|
45 | columnApi: ColumnApi,
|
46 | context: any,
|
47 | type: string
|
48 | }
|
49 |
|
50 | export interface ProcessHeaderForExportParams {
|
51 | column: Column,
|
52 | api: GridApi,
|
53 | columnApi: ColumnApi,
|
54 | context: any
|
55 | } |
\ | No newline at end of file |