tanstack-table-header-rowspan
Version:
Rowspan for TanStack Table headers
18 lines (15 loc) • 755 B
text/typescript
import { Header } from '@tanstack/react-table';
import { CSSProperties } from 'react';
declare function tableHeaderRowSpan<D, V>(header: Header<D, V>): number | null;
declare function tableFooterRowSpan<D, V>(header: Header<D, V>): number | null;
declare function flexTableHeaderRowSpan<D, V>(header: Header<D, V>): {
rowSpan: number;
topBorderMightBeNeeded: boolean;
styles: (cssRowHeight: CSSProperties["height"]) => CSSProperties;
};
declare function flexTableFooterRowSpan<D, V>(header: Header<D, V>): {
rowSpan: number;
bottomBorderMightBeNeeded: boolean;
styles: (cssRowHeight: CSSProperties["height"]) => CSSProperties;
};
export { flexTableFooterRowSpan, flexTableHeaderRowSpan, tableFooterRowSpan, tableHeaderRowSpan };