exportOptions.enabled | boolean | false | Shows the export controls when true. |
exportOptions.type | "pdf" | "excel" | "both" | "both" | Selects which export actions are available. |
exportOptions.pages | "current" | "all" | "selection" | "current" | Selects current page rows, all rows from dataProviderAll, or selected rows from dataProviderSelection. |
exportOptions.fileName | string | "export" | Sets the generated file name. |
exportOptions.pdf | { pageSize?: string; landscape?: boolean; margins?: [number, number, number, number] } | - | Controls PDF page size, orientation, and margins for the built-in PDF adapter. |
exportOptions.excel.sheetName | string | "Sheet1" | Sets the worksheet name for Excel export. Invalid Excel sheet-name characters are removed. |
dataProviderAll | () => Observable<T[]> | Promise<T[]> | T[] | undefined | Provides all rows when exportOptions.pages is "all". |
dataProviderSelection | () => T[] | undefined | Provides selected rows when exportOptions.pages is "selection". |
PdfExportPayload | { fileName: string; columns: string[]; rows: any[]; options?: any } | - | Payload passed to PdfExportAdapter. Columns are visible column field names. |
ExcelExportPayload | { fileName: string; sheetName: string; columns: Array<{ key: string; title: string }>; rows: any[] } | - | Payload passed to ExcelExportAdapter. Columns include visible field keys and header titles. |
JsPdfAdapter | PdfExportAdapter | built-in | Dependency-free browser PDF adapter for simple table exports. Use a custom adapter for rich PDFs. |
BrowserExcelExportAdapter | ExcelExportAdapter | built-in | Dependency-free SpreadsheetML adapter that downloads an Excel-compatible .xls workbook. |
ngbExportButton | Template directive | - | Projects custom export buttons that call the grid export trigger. |