createVirtualSnapshot()
function createVirtualSnapshot(model, events?): Accessor<number>;Create a Solid accessor updated by selected model events.
Parameters
model
events?
number = VirtualScrollerEvent.RANGE
Returns
Accessor<number>
Accessor containing the current selected model revision.
Related examples
- GridsolidThis example combines one vertical model and one horizontal model to virtualize a dynamic two-dimensional grid.
- Nested ContainersolidThis example separates the native scroll owner from the element that contains the virtual range. Content can appear before the list while core still measures the nested offset and publishes the correct geometry.
- TablesolidThis 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.
- Event SubscriptionssolidThis example subscribes separate, small consumers to range and size events. Unrelated model changes stay out of each framework's broader render or reactive update path.
- Window ScrollsolidThis example uses the browser window as the native scroll owner while the virtual range remains nested inside ordinary page content.