Preparing search index...
    interface TableProps<T = any, C = void> {
        addText: ReactNode;
        canAdd?: boolean;
        canCollapseLocked?: boolean;
        canDelete?: boolean;
        cellRenderer?: (props: TableCellRendererProps<T, C>) => ReactNode;
        cellViewType?:
            | CELL_VIEW_TYPE
            | (
                (
                    column: TableColumn<T, C>,
                    rowData: T,
                    index: number,
                ) => CELL_VIEW_TYPE
            );
        checkedLockedRows?: number[];
        checkedRows?: number[];
        collapsedRowsText?: string;
        collapseText?: string;
        columnHeights?: { [key: string]: number };
        columns: TableColumn<T, C>[];
        columnWidths?: { [key: string]: number };
        customHeaderCheckbox?: ReactNode;
        data: T[];
        deleteText: ReactNode;
        disabledForCheckLockedRows?: number[];
        disabledForCheckRows?: number[];
        editableCell?: { id: string; index: number };
        emptyTableRenderer?: (
            isLoading: boolean,
            emptyTableText: string,
        ) => ReactNode;
        emptyTableText?: string;
        expandText?: string;
        filterValues?: { [key: string]: any };
        getRowKey?: (row: T, index: number) => string;
        getRowType?: (rowIndex: number) => ROW_TYPE;
        hasCellPadding?: boolean;
        hasChecked?: boolean;
        hasHeader?: boolean;
        hasHeaderBg?: boolean;
        hasNavigation?: boolean;
        hasPagination?: boolean;
        hideLastRowBorder?: boolean;
        highlightedRows?: number[];
        isAutoHeightFill?: boolean;
        isAutoScrollToSelected?: boolean;
        isChangedAxes?: boolean;
        isEditable?: boolean;
        isHeaderCheckable?: boolean;
        isLoading?: boolean;
        isLockedCollapsed?: boolean;
        isLockedRowsCheckable?: boolean;
        isMultiselect?: boolean;
        isResizable?: boolean;
        isRowsCheckable?: boolean;
        isRowsSelectable?: boolean;
        isScrollOverflowAuto?: boolean;
        isSortable?: boolean;
        isStriped?: boolean;
        loadingText: string;
        lockedData?: T[];
        lockedRowActions?: (rowData: TableRowActionsProps<T>) => ReactNode;
        maxRowsBeforeOverflow?: number;
        noLockedLimit?: boolean;
        onAllCheck?: (isCheck: boolean) => void;
        onCellEdit?: (
            rowIndex: number,
            columnId: string,
            newValue: EditableCellValue,
            cancelEdit?: boolean,
        ) => void;
        onCellEditStart?: (rowIndex: number, columnId: string) => void;
        onChangeColumnHeight?: (columnId: string, newHeight: number) => void;
        onChangeColumnWidth?: (columnId: string, newWidth: number) => void;
        onCollapseLocked?: (isCollapsed: boolean) => void;
        onFilter?: (columnId: string, isClear?: boolean) => void;
        onLockedRowCheck?: (
            rowIndex: number,
            isCheck: boolean,
            isShiftPressed?: boolean,
        ) => void;
        onLockedRowClick?: (
            rowIndex: number,
            e?: MouseEvent<Element, MouseEvent> | KeyboardEvent<Element>,
        ) => void;
        onMove?: (sortEnd: TableSortEnd) => void;
        onResetFilter?: (columnId: string) => void;
        onRowAdd?: () => void;
        onRowCheck?: (
            rowIndex: number,
            isCheck: boolean,
            isShiftPressed?: boolean,
        ) => void;
        onRowClick?: (
            rowIndex: number,
            e?: MouseEvent<Element, MouseEvent> | KeyboardEvent<Element>,
        ) => void;
        onRowDoubleClick?: (rowIndex: number, e: MouseEvent) => void;
        onRowMouseEnter?: (rowIndex: number, e: MouseEvent) => void;
        onRowMouseLeave?: (rowIndex: number, e: MouseEvent) => void;
        onRowsDelete?: (rowIndexes: number[]) => void;
        onSort?: (
            columnId: string,
            newSortDirection: TableSortDirection,
            currentSortDirection: TableSortDirection,
            columnData?: C,
        ) => void;
        rowActions?: (rowData: TableRowActionsProps<T>) => ReactNode;
        rowHeights?: { [key: string]: number };
        rowWidths?: { [key: string]: number };
        selectedRows?: number[];
        sortDirection?: { [key: string]: TableSortDirection };
        unsetText: string;
    }

    Type Parameters

    • T = any
    • C = void

    Hierarchy

    Index

    Properties

    addText: ReactNode
    canAdd?: boolean
    canCollapseLocked?: boolean
    canDelete?: boolean
    cellRenderer?: (props: TableCellRendererProps<T, C>) => ReactNode
    cellViewType?:
        | CELL_VIEW_TYPE
        | (
            (
                column: TableColumn<T, C>,
                rowData: T,
                index: number,
            ) => CELL_VIEW_TYPE
        )
    checkedLockedRows?: number[]
    checkedRows?: number[]
    collapsedRowsText?: string
    collapseText?: string
    columnHeights?: { [key: string]: number }
    columns: TableColumn<T, C>[]
    columnWidths?: { [key: string]: number }
    customHeaderCheckbox?: ReactNode
    data: T[]
    deleteText: ReactNode
    disabledForCheckLockedRows?: number[]
    disabledForCheckRows?: number[]
    editableCell?: { id: string; index: number }
    emptyTableRenderer?: (isLoading: boolean, emptyTableText: string) => ReactNode
    emptyTableText?: string
    expandText?: string
    filterValues?: { [key: string]: any }
    getRowKey?: (row: T, index: number) => string
    getRowType?: (rowIndex: number) => ROW_TYPE
    hasCellPadding?: boolean
    hasChecked?: boolean
    hasHeader?: boolean
    hasHeaderBg?: boolean
    hasNavigation?: boolean
    hasPagination?: boolean
    hideLastRowBorder?: boolean
    highlightedRows?: number[]
    isAutoHeightFill?: boolean
    isAutoScrollToSelected?: boolean
    isChangedAxes?: boolean
    isEditable?: boolean
    isHeaderCheckable?: boolean
    isLoading?: boolean
    isLockedCollapsed?: boolean
    isLockedRowsCheckable?: boolean
    isMultiselect?: boolean
    isResizable?: boolean
    isRowsCheckable?: boolean
    isRowsSelectable?: boolean
    isScrollOverflowAuto?: boolean
    isSortable?: boolean
    isStriped?: boolean
    loadingText: string
    lockedData?: T[]
    lockedRowActions?: (rowData: TableRowActionsProps<T>) => ReactNode
    maxRowsBeforeOverflow?: number
    noLockedLimit?: boolean
    onAllCheck?: (isCheck: boolean) => void
    onCellEdit?: (
        rowIndex: number,
        columnId: string,
        newValue: EditableCellValue,
        cancelEdit?: boolean,
    ) => void
    onCellEditStart?: (rowIndex: number, columnId: string) => void
    onChangeColumnHeight?: (columnId: string, newHeight: number) => void
    onChangeColumnWidth?: (columnId: string, newWidth: number) => void
    onCollapseLocked?: (isCollapsed: boolean) => void
    onFilter?: (columnId: string, isClear?: boolean) => void
    onLockedRowCheck?: (
        rowIndex: number,
        isCheck: boolean,
        isShiftPressed?: boolean,
    ) => void
    onLockedRowClick?: (
        rowIndex: number,
        e?: MouseEvent<Element, MouseEvent> | KeyboardEvent<Element>,
    ) => void
    onMove?: (sortEnd: TableSortEnd) => void
    onResetFilter?: (columnId: string) => void
    onRowAdd?: () => void
    onRowCheck?: (
        rowIndex: number,
        isCheck: boolean,
        isShiftPressed?: boolean,
    ) => void
    onRowClick?: (
        rowIndex: number,
        e?: MouseEvent<Element, MouseEvent> | KeyboardEvent<Element>,
    ) => void
    onRowDoubleClick?: (rowIndex: number, e: MouseEvent) => void
    onRowMouseEnter?: (rowIndex: number, e: MouseEvent) => void
    onRowMouseLeave?: (rowIndex: number, e: MouseEvent) => void
    onRowsDelete?: (rowIndexes: number[]) => void
    onSort?: (
        columnId: string,
        newSortDirection: TableSortDirection,
        currentSortDirection: TableSortDirection,
        columnData?: C,
    ) => void
    rowActions?: (rowData: TableRowActionsProps<T>) => ReactNode
    rowHeights?: { [key: string]: number }
    rowWidths?: { [key: string]: number }
    selectedRows?: number[]
    sortDirection?: { [key: string]: TableSortDirection }
    unsetText: string