Skip to content

VirtGrid API

Attributes

AttributeDescriptionTypeDefaultRequired
listlist dataArray-
minSizeThe Min Size of ItemNumber20
gridItemsNumber of items displayed per columnNumber2
other attrsSame as VirtList's attribute---

Methods

MethodDescriptionParameters
scrollToTopscroll to top-
scrollToBottomscroll to bottom-
scrollToIndexscroll to indexindex
scrollInToViewscroll to index if needed(if item is not in view)index
scrollToOffsetscroll to pxpx
forceUpdateforce update(render)-

Slots

NameDescription
headerthe slot of header
footerthe slot of footer
sticky-headerthe slot of sticky header
sticky-footerthe slot of sticky footer
emptythe slot of empty
defaultthe slot of item, slotScoped = { itemData, index, rowIndex }