es-grid-template
Version:
es-grid-template
21 lines (20 loc) • 990 B
TypeScript
/// <reference types="react" />
import type { RenderInfo } from './interfaces';
import type { BaseTableProps } from './table';
import type { CommandClick, IFormat } from '../../grid-component/type';
export interface HtmlTableProps extends Required<Pick<BaseTableProps, 'getRowProps' | 'primaryKey' | 'components'>> {
tbodyHtmlTag: 'tbody' | 'tfoot';
data: any[];
originData: any[];
format?: IFormat;
id: string;
commandClick?: (args: CommandClick<any>) => void;
horizontalRenderInfo: Pick<RenderInfo, 'flat' | 'visible' | 'horizontalRenderRange' | 'stickyLeftMap' | 'stickyRightMap'>;
verticalRenderInfo: {
offset: number;
first: number;
last: number;
limit: number;
};
}
export declare function HtmlTable({ tbodyHtmlTag, getRowProps, primaryKey, data, originData, format, commandClick, id, verticalRenderInfo: verInfo, horizontalRenderInfo: hozInfo, components: { Row, Cell, TableBody }, }: HtmlTableProps): JSX.Element;