Skip to content

ExportMethods

Export methods returned from injectGridExport.

Uses lazy discovery - the grid is found on first method call, not during initialization. This ensures it works with lazy-rendered tabs, conditional rendering, etc.

PropertyTypeDescription
exportToCsv(filename: string, params: Partial<ExportParams>) => voidExport grid data to CSV file.
exportToExcel(filename: string, params: Partial<ExportParams>) => voidExport grid data to Excel file (XML Spreadsheet format).
exportToJson(filename: string, params: Partial<ExportParams>) => voidExport grid data to JSON file.
isExporting() => booleanCheck if an export is currently in progress.
getLastExport() => object | unknownGet information about the last export.
isReadySignal<boolean>Signal indicating if grid is ready. The grid is discovered lazily, so this updates when first method call succeeds.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt