createVirtual()
function createVirtual(params): VirtualScroller;Create a component-owned model and synchronize it with reactive parameters.
Parameters
params
MaybeGetter<VirtualScrollerInitialParams>
Returns
Remarks
Call this helper during Svelte component initialization.
Related examples
- GridsvelteThis example combines one vertical model and one horizontal model to virtualize a dynamic two-dimensional grid.
- TablesvelteThis example virtualizes dynamic rows without breaking native table semantics. Spacer rows represent content above and below the rendered range because a positioning wrapper cannot sit between tbody and tr.