VirtualListMixin

external interface VirtualListMixin

Inheritors

Properties

Link copied to clipboard
abstract val firstVisibleIndex: JsAny?

Gets the index of the first visible item in the viewport.

Link copied to clipboard

A function that generates accessible names for virtual list items. The function gets the item as an argument and the return value should be a string representing that item. The result gets applied to the corresponding virtual list child element as an aria-label attribute.

Link copied to clipboard
abstract var items: Array<JsAny>?

An array containing items determining how many instances to render.

Link copied to clipboard
abstract val lastVisibleIndex: JsAny?

Gets the index of the last visible item in the viewport.

Link copied to clipboard

Custom function for rendering the content of every item. Receives three arguments:

Functions

Link copied to clipboard
abstract fun requestContentUpdate()

Requests an update for the content of the rows. While performing the update, it invokes the renderer passed in the renderer property for each visible row.

Link copied to clipboard
abstract fun scrollToIndex(index: Double)

Scroll to a specific index in the virtual list.