UNPKG

es-grid-template

Version:

es-grid-template

49 lines (48 loc) 1.67 kB
import type { Dispatch, SetStateAction } from "react"; import React from "react"; import type { ColumnDef, ColumnSizingInfoState, ColumnSizingState, Table } from "@tanstack/react-table"; import type { ColumnsTable, TableProps } from "./../grid-component/type"; type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & { table: Table<T>; prefix: string; id: string; rowKey: any; originData: T[]; propsColumns: ColumnsTable; isSelectionChange?: { isChange: boolean; type: string; rowData: T; rowsData: T[]; }; setIsSelectionChange: Dispatch<SetStateAction<{ isChange: boolean; type: string; rowData: T; rowsData: T[]; }>>; setSorterChange: Dispatch<SetStateAction<boolean>>; setFilterChange: Dispatch<SetStateAction<boolean>>; onContextMenu?: (data: T) => (event: any) => void; isDataTree: boolean; windowSize: { innerHeight: number; innerWidth: number; }; mergedFilterKeys?: any; setMergedFilterKeys?: any; setExpanded?: any; expanded?: any; columns: ColumnDef<T>[]; triggerChangeColumns: any; columnHidden: any; isFullScreen: boolean; setIsFullScreen: Dispatch<SetStateAction<boolean>>; setColumnSizing: Dispatch<SetStateAction<any>>; setColumns: Dispatch<SetStateAction<any>>; columnSizingInfo: ColumnSizingInfoState; columnSizing: ColumnSizingState; setIsExpandClick: Dispatch<SetStateAction<boolean>>; }; declare const TableContainerEdit: <RecordType extends object>(props: TableContainerProps<RecordType>) => React.JSX.Element; export default TableContainerEdit;