VirtualVueElementRef
type VirtualVueElementRef = (element) => void;DOM template-ref callback accepted by Vue.
Parameters
element
Element | ComponentPublicInstance | null
Returns
void
Related examples
- Sticky Header And FootervueThis example keeps a header and footer inside the scrolling viewport while the virtual item range remains measured and independently positioned.
- GridvueThis example combines one vertical model and one horizontal model to virtualize a dynamic two-dimensional grid.
- 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.
- Prepend ItemsvueThis example prepends asynchronously loaded records without moving the item the reader is currently viewing.
- 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.
- Scroll To ItemvueThis example scrolls to an item by index while row sizes and the collection length change. It covers alignment, smooth scrolling, sticky controls, and measurement correction through the public scrolling API.