Components
All components are standalone and exported from ngx-virtual-dnd.
VirtualSortableListComponent
Selector: vdnd-sortable-list
Droppable, virtual scroller and placeholder in one element. The default choice. See the Quick start.
The item template context (VirtualScrollItemContext<T>) exposes $implicit (the item), index (position in the full list) and isSticky.
VirtualScrollContainerComponent
Selector: vdnd-virtual-scroll
Low-level virtual scroller. Place it inside an element with vdndDroppable. See Choosing a component.
Get the instance with viewChild(VirtualScrollContainerComponent).
VirtualViewportComponent
Selector: vdnd-virtual-viewport
Self-scrolling container for *vdndVirtualFor. Positions all rows with one GPU-accelerated transform. Children inherit itemHeight and dynamicItemHeight. Needs a CSS height.
VirtualContentComponent
Selector: vdnd-virtual-content
Virtual rows inside an external scroll container, for page-level scrolling. Must be inside a vdndScrollable element. Projects an optional [vdndContentHeader] above the rows.
DragPreviewComponent
Selector: vdnd-drag-preview
Renders the element that follows the pointer. Required: place it once. It moves itself into a body-level div.vdnd-overlay-container. The preview box is inert and aria-hidden="true". See Preview and placeholder.
PlaceholderComponent
Selector: vdnd-placeholder
A drop-position indicator you render yourself. The built-in lists do not use it; they render DragPlaceholderComponent.
DragPlaceholderComponent
Selector: vdnd-drag-placeholder
The empty placeholder that the lists render at the drop position, sized to the dragged item. You rarely use it directly; style it through .vdnd-drag-placeholder.