UNPKG

ant-responsive-table

Version:
25 lines (24 loc) 802 B
/** * This component will render classic ant table with no changes * Unless the props 'ViewPortWidth' is less than prop 'MobileBreakPoint' * then it will render custom html for responsive design */ import { CardProps } from "antd/lib/card"; import { ColumnProps, TableProps } from "antd/lib/table"; import * as React from "react"; export declare type additionalCols = ColumnProps<any> & { showOnResponse: boolean; showOnDesktop: boolean; }; export declare type props = { antTableProps: TableProps<any> & { columns: additionalCols[]; }; cardProps: CardProps; mobileBreakPoint: number; }; declare class ResponsiveTable extends React.Component<props> { constructor(props: props); render(): JSX.Element; } export default ResponsiveTable;