Interface TableProps<RecordType>

interface TableProps<RecordType> {
    bordered?: boolean;
    caption?: ReactNode;
    children?: ReactNode;
    childrenColumnName?: string;
    className?: string;
    columns?: TableColumnsType<RecordType>;
    components?: TableComponents<RecordType>;
    dataSource?: readonly RecordType[];
    defaultExpandAllRows?: boolean;
    defaultExpandedRowKeys?: Key[];
    direction?: Direction;
    dropdownPrefixCls?: string;
    expandIcon?: RenderExpandIcon<RecordType>;
    expandIconColumnIndex?: number;
    expandRowByClick?: boolean;
    expandable?: ExpandableConfig<RecordType>;
    expandedRowClassName?: RowClassName<RecordType>;
    expandedRowKeys?: Key[];
    expandedRowRender?: ExpandedRowRender<RecordType>;
    footer?: PanelRender<RecordType>;
    getContainerWidth?: ((ele, width) => number);
    getPopupContainer?: GetPopupContainer;
    id?: string;
    indentSize?: number;
    loading?: boolean | Antd.SpinProps;
    locale?: TableLocale;
    onChange?: ((pagination, filters, sorter, extra) => void);
    onExpand?: ((expanded, record) => void);
    onExpandedRowsChange?: ((expandedKeys) => void);
    onHeaderRow?: GetComponentProps<readonly ColumnType<RecordType>[]>;
    onRow?: GetComponentProps<RecordType>;
    pagination?: false | TablePaginationConfig;
    prefixCls?: string;
    rootClassName?: string;
    rowClassName?: string | RowClassName<RecordType>;
    rowKey?: string | keyof RecordType | GetRowKey<RecordType>;
    rowSelection?: TableRowSelection<RecordType>;
    scroll?: {
        x?: string | number | true;
        y?: string | number;
    } & {
        scrollToFirstRowOnChange?: boolean;
    };
    showHeader?: boolean;
    showSorterTooltip?: boolean | TooltipProps;
    size?: SizeType;
    sortDirections?: SortOrder[];
    sticky?: boolean | TableSticky;
    style?: CSSProperties;
    summary?: ((data) => ReactNode);
    tableLayout?: TableLayout;
    tailor?: boolean;
    title?: PanelRender<RecordType>;
    virtual?: boolean;
}

Type Parameters

  • RecordType = any

Hierarchy

  • Omit<RcTableProps<RecordType>, "transformColumns" | "internalHooks" | "internalRefs" | "data" | "columns" | "scroll" | "emptyText">
    • TableProps

Properties

bordered?: boolean
caption?: ReactNode
children?: ReactNode
childrenColumnName?: string

Deprecated

Use expandable.childrenColumnName instead

className?: string
components?: TableComponents<RecordType>
dataSource?: readonly RecordType[]
defaultExpandAllRows?: boolean

Deprecated

Use expandable.defaultExpandAllRows instead

defaultExpandedRowKeys?: Key[]

Deprecated

Use expandable.defaultExpandedRowKeys instead

direction?: Direction
dropdownPrefixCls?: string
expandIcon?: RenderExpandIcon<RecordType>

Deprecated

Use expandable.expandIcon instead

expandIconColumnIndex?: number

Deprecated

Use expandable.expandIconColumnIndex instead

expandRowByClick?: boolean

Deprecated

Use expandable.expandRowByClick instead

expandable?: ExpandableConfig<RecordType>

Config expand rows

expandedRowClassName?: RowClassName<RecordType>

Deprecated

Use expandable.expandedRowClassName instead

expandedRowKeys?: Key[]

Deprecated

Use expandable.expandedRowKeys instead

expandedRowRender?: ExpandedRowRender<RecordType>

Deprecated

Use expandable.expandedRowRender instead

footer?: PanelRender<RecordType>
getContainerWidth?: ((ele, width) => number)

Internal usage, may remove by refactor.

!!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!

Type declaration

    • (ele, width): number
    • Internal usage, may remove by refactor.

      !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!

      Parameters

      Returns number

getPopupContainer?: GetPopupContainer
id?: string
indentSize?: number
loading?: boolean | Antd.SpinProps
locale?: TableLocale
onChange?: ((pagination, filters, sorter, extra) => void)

Type declaration

onExpand?: ((expanded, record) => void)

Type declaration

    • (expanded, record): void
    • Parameters

      Returns void

      Deprecated

      Use expandable.onExpand instead

Deprecated

Use expandable.onExpand instead

onExpandedRowsChange?: ((expandedKeys) => void)

Type declaration

    • (expandedKeys): void
    • Parameters

      • expandedKeys: Key[]

      Returns void

      Deprecated

      Use expandable.onExpandedRowsChange instead

Deprecated

Use expandable.onExpandedRowsChange instead

onHeaderRow?: GetComponentProps<readonly ColumnType<RecordType>[]>
onRow?: GetComponentProps<RecordType>
pagination?: false | TablePaginationConfig
prefixCls?: string
rootClassName?: string
rowClassName?: string | RowClassName<RecordType>
rowKey?: string | keyof RecordType | GetRowKey<RecordType>
rowSelection?: TableRowSelection<RecordType>
scroll?: {
    x?: string | number | true;
    y?: string | number;
} & {
    scrollToFirstRowOnChange?: boolean;
}

Type declaration

  • Optional x?: string | number | true
  • Optional y?: string | number

Type declaration

  • Optional scrollToFirstRowOnChange?: boolean
showHeader?: boolean
showSorterTooltip?: boolean | TooltipProps
size?: SizeType
sortDirections?: SortOrder[]
sticky?: boolean | TableSticky
style?: CSSProperties
summary?: ((data) => ReactNode)

Type declaration

    • (data): ReactNode
    • Parameters

      Returns ReactNode

tableLayout?: TableLayout
tailor?: boolean

Internal usage, may remove by refactor.

!!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!

title?: PanelRender<RecordType>
virtual?: boolean

Generated using TypeDoc