ant-responsive-table
Version:
responsive ant design table
25 lines (24 loc) • 802 B
TypeScript
/**
* 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;