useVirtualSnapshot()
function useVirtualSnapshot(model, events?): ShallowRef<number>;Reactive revision for selected model events.
Parameters
model
events?
number = VirtualScrollerEvent.RANGE
Returns
ShallowRef<number>
Related examples
- GridvueThis example combines one vertical model and one horizontal model to virtualize a dynamic two-dimensional grid.
- Nested ContainervueThis 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.
- TablevueThis 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 SubscriptionsvueThis 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 ScrollvueThis example uses the browser window as the native scroll owner while the virtual range remains nested inside ordinary page content.