UNPKG

@mescius/dspdfviewer

Version:
31 lines (30 loc) 1.06 kB
//@ts-ignore import React, { Component } from 'react'; import { TableDefClientModel } from '../SupportApi/types'; export type TableDataPreviewProps = { tableData: TableDefClientModel; tableIndex: number; disabled?: boolean; }; export declare class TableDataPreview extends Component<TableDataPreviewProps, any> { constructor(props: TableDataPreviewProps); /** * Checks if a cell at (rowIndex, colIndex) is covered by any spanning cell * @param tableData The table data model * @param rowIndex Target row index * @param colIndex Target column index * @returns True if the cell is spanned by another cell, false otherwise */ private isCellSpanned; /** * Checks if a cell exists at (rowIndex, colIndex) * @param tableData The table data model * @param rowIndex Target row index * @param colIndex Target column index * @returns The cell if found, undefined otherwise */ private getCellAt; //@ts-ignore //@ts-ignore render(): React.JSX.Element; }