DataProviderMixin

external interface DataProviderMixin

Inheritors

Properties

Link copied to clipboard

Function that provides items lazily. Receives arguments params, callback

Link copied to clipboard
abstract var expandedItems: Array<JsAny>

An array that contains the expanded items.

Link copied to clipboard

Path to an item sub-property that indicates whether the item has child items.

Link copied to clipboard
abstract var itemIdPath: String

Path to an item sub-property that identifies the item.

Link copied to clipboard
abstract val loading: Boolean

true while data is being requested from the data provider.

Link copied to clipboard
abstract var pageSize: Double

Number of items fetched at a time from the dataprovider.

Link copied to clipboard
abstract var size: Double

The number of root-level items in the grid.

Functions

Link copied to clipboard
abstract fun clearCache()

Clears the cached pages and reloads data from dataprovider when needed.

Link copied to clipboard
abstract fun collapseItem(item: JsAny)

Collapses the given item tree.

Link copied to clipboard
abstract fun expandItem(item: JsAny)

Expands the given item tree.

Link copied to clipboard
abstract fun getItemId(item: JsAny): JsAny

Returns a value that identifies the item. Uses itemIdPath if available. Can be customized by overriding.

Link copied to clipboard
abstract fun scrollToIndex(vararg indexes: Double)

Scroll to a specific row index in the virtual list. Note that the row index is not always the same for any particular item. For example, sorting or filtering items can affect the row index related to an item.