You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
790 B
15 lines
790 B
|
2 years ago
|
import type { TableColumnCtx } from '../table-column/defaults';
|
||
|
|
import type { TableBodyProps } from './defaults';
|
||
|
|
declare function useStyles<T>(props: Partial<TableBodyProps<T>>): {
|
||
|
|
getRowStyle: (row: T, rowIndex: number) => any;
|
||
|
|
getRowClass: (row: T, rowIndex: number) => string[];
|
||
|
|
getCellStyle: (rowIndex: number, columnIndex: number, row: T, column: TableColumnCtx<T>) => any;
|
||
|
|
getCellClass: (rowIndex: number, columnIndex: number, row: T, column: TableColumnCtx<T>, offset: number) => string;
|
||
|
|
getSpan: (row: T, column: TableColumnCtx<T>, rowIndex: number, columnIndex: number) => {
|
||
|
|
rowspan: number;
|
||
|
|
colspan: number;
|
||
|
|
};
|
||
|
|
getColspanRealWidth: (columns: TableColumnCtx<T>[], colspan: number, index: number) => number;
|
||
|
|
};
|
||
|
|
export default useStyles;
|