OnsLazyRepeat

open class OnsLazyRepeat(className: String? = null, init: OnsLazyRepeat.() -> Unit? = null)

An Onsen UI lazy repeat helper component.

Parameters

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(className: String? = null, init: OnsLazyRepeat.() -> Unit? = null)

Creates a lazy repeat helper component.

Functions

Link copied to clipboard
open fun afterInsert(node: <Error class: unknown class>)
Link copied to clipboard
open fun calculateItemHeight(callback: (index: Int) -> Int)

Sets a callback function for calculating item height.

Link copied to clipboard
open fun countItems(callback: () -> Int)

Sets a callback function returning a number of items.

Link copied to clipboard
open fun createItemContent(callback: (index: Int) -> <Error class: unknown class>)

Sets a callback function for creating new list items.

Link copied to clipboard
open fun destroyItemCallback(callback: (index: Int, <Error class: unknown class>) -> Unit)

Sets a callback function for destroying removed HTML elements.

Link copied to clipboard
open fun refreshList()

Refreshes the list.

Link copied to clipboard
open fun render(): <Error class: unknown class>