rx-datatable API
    Preparing search index...

    Interface VirtualizationSettings<T>

    interface VirtualizationSettings<T> {
        containerRef?: RefObject<HTMLDivElement> | RefObject<HTMLElement>;
        height: number | ((item: T) => number | false);
        margin?: number;
    }

    Type Parameters

    • T
    Index
    containerRef?: RefObject<HTMLDivElement> | RefObject<HTMLElement>

    This is only necessary when using virtualization with DataTableCore (not DataTable). It's the ref of the scrolling container in which the DataTableCore is placed, which is used as the root element for row virtualization.

    height: number | ((item: T) => number | false)

    Per-row virtualization height in pixels, or a function that returns a height for a given row item. The virtualizer renders groups of off-screen rows as empty placeholders based on this height until they come into view. If this is a function that returns false for an item, the item is left unvirtualized (always rendered). A height of 0 is not supported and acts like false. *

    margin?: number

    Vertical buffer margin that makes rows "real" before they enter the viewport, to reduce pop-in and allow a wider range of Ctrl+F searching.