@antadesign/table
    Preparing search index...

    Interface TableVirtualizerProps<R>Unreviewed

    Props a virtualizer receives. VirtualScroll from @antadesign/virtual-scroll accepts them.

    interface TableVirtualizerProps<R> {
        className?: string;
        style?: CSSProperties;
        children?: ReactNode;
        id?: string;
        title?: string;
        slot?: string;
        tabIndex?: number;
        key?: string | number | null;
        items: TableRangeSource<R>;
        renderItem: (item: R, index: number) => ReactNode;
        header?: ReactNode;
        empty?: ReactNode;
        height?: number;
        itemMinHeight?: number;
        itemHeightFixed?: boolean;
        contentWidth?: number;
        contentKey?: string;
        follow?: boolean;
        marks?: Iterable<number, any, any>;
        reveal?: { index: number; key?: string; target?: string; x?: TableRevealX };
        interceptKeys?: string;
        onContentSizeChange?: (
            event: CustomEvent<{ height: number | null; width: number }>,
            detail: { height: number | null; width: number },
        ) => void;
        [key: `data-${string}`]: unknown;
        [key: `aria-${string}`]: unknown;
    }

    Type Parameters

    • R

    Hierarchy

    • BaseProps
      • TableVirtualizerProps

    Indexable

    • [key: `data-${string}`]: unknown

      Any data-* attribute is forwarded to the rendered element.

    • [key: `aria-${string}`]: unknown

      Any aria-* attribute is forwarded to the rendered element.

    Index
    className?: string

    Adds CSS classes to the root element and preserves its existing classes.

    style?: CSSProperties

    Inline CSS styles on the root element.

    children?: ReactNode

    Content to render in place of any default content.

    id?: string

    HTML id attribute.

    title?: string

    HTML title attribute, shown as a browser tooltip on hover.

    slot?: string

    Named slot in a parent web component, such as slot="header" in a <Dialog>.

    tabIndex?: number

    Tab order. Set to -1 to skip the element when tabbing.

    key?: string | number | null

    React/Preact reconciliation key when rendered inside a list. Consumed by the JSX runtime (not forwarded as a DOM attribute).

    renderItem: (item: R, index: number) => ReactNode
    header?: ReactNode
    empty?: ReactNode
    height?: number
    itemMinHeight?: number
    itemHeightFixed?: boolean
    contentWidth?: number
    contentKey?: string
    follow?: boolean
    marks?: Iterable<number, any, any>
    reveal?: { index: number; key?: string; target?: string; x?: TableRevealX }
    interceptKeys?: string
    onContentSizeChange?: (
        event: CustomEvent<{ height: number | null; width: number }>,
        detail: { height: number | null; width: number },
    ) => void