@ackplus/react-tanstack-data-table
Version:
A powerful React data table component built with MUI and TanStack Table
26 lines (25 loc) • 1.01 kB
TypeScript
import { TableFilters } from '../../types';
import { SelectionState } from '../../features/custom-selection.feature';
interface TableExportControlProps {
exportFilename?: string;
onServerExport?: (filters?: Partial<TableFilters>, selection?: SelectionState) => Promise<{
data: any[];
total: number;
}>;
onExportProgress?: (progress: {
processedRows: number;
totalRows: number;
percentage: number;
}) => void;
onExportComplete?: (result: {
success: boolean;
filename: string;
totalRows: number;
}) => void;
onExportError?: (error: {
message: string;
code: string;
}) => void;
}
export declare function TableExportControl({ exportFilename: propsExportFilename, onServerExport: propsOnServerExport, onExportProgress: propsOnExportProgress, onExportComplete: propsOnExportComplete, onExportError: propsOnExportError, }?: TableExportControlProps): import("react/jsx-runtime").JSX.Element;
export {};