open class OnsLazyRepeat : Widget
An Onsen UI lazy repeat helper component.
(js)
<init> |
Creates a lazy repeat helper component. OnsLazyRepeat(classes: Set<String> = setOf(), init: (OnsLazyRepeat.() -> Unit)? = null) |
(js)
calculateItemHeightCallback |
A callback function for calculating item height. var calculateItemHeightCallback: ((Int) -> Int)? |
(js)
countItemsCallback |
A callback function returning a number of items. var countItemsCallback: (() -> Int)? |
(js)
createItemContentCallback |
A callback function for creating new list items. var createItemContentCallback: ((Int) -> HTMLElement)? |
(js)
destroyItemCallback |
A callback function for destroying removed HTML elements. var destroyItemCallback: ((Int, HTMLElement) -> Unit)? |
(js)
afterInsert |
Method called after inserting Snabbdom vnode into the DOM. open fun afterInsert(node: VNode): Unit |
(js)
calculateItemHeight |
Sets a callback function for calculating item height. open fun calculateItemHeight(callback: (index: Int) -> Int): Unit |
(js)
countItems |
Sets a callback function returning a number of items. open fun countItems(callback: () -> Int): Unit |
(js)
createItemContent |
Sets a callback function for creating new list items. open fun createItemContent(callback: (index: Int) -> HTMLElement): Unit |
(js)
destroyItemCallback |
Sets a callback function for destroying removed HTML elements. open fun destroyItemCallback(callback: (index: Int, element: HTMLElement) -> Unit): Unit |
(js)
refreshList |
Refreshes the list. open fun refreshList(): Unit |
(js)
render |
Renders current component as a Snabbdom vnode. open fun render(): VNode |
(js)
changeFlow |
Extension property returning Flow for a change event. val <T : Widget> T.changeFlow: Flow<T> |
(js)
clickFlow |
Extension property returning Flow for a click event. val <T : Widget> T.clickFlow: Flow<T> |
(js)
inputFlow |
Extension property returning Flow for an input event. val <T : Widget> T.inputFlow: Flow<T> |
(js)
addBsBgColor |
fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit |
(js)
addBsBorder |
fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit |
(js)
addBsClearfix |
fun Component.addBsClearfix(): Unit |
(js)
addBsColor |
fun Component.addBsColor(bsColor: BsColor): Unit |
(js)
addBsRounded |
fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit |
(js)
bind |
An extension function which binds the widget to the observable state. fun <S, W : Widget> W.bind(observableState: ObservableState<S>, removeChildren: Boolean = true, factory: W.(S) -> Unit): W |
(js)
contextMenu |
DSL builder extension function. fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (ContextMenu.() -> Unit)? = null): ContextMenu |
(js)
enableGestureDetector |
Enable gesture detector for a given Widget. fun Widget.enableGestureDetector(): Unit |
(js)
eventFlow |
Extension property returning Flow<Pair<Widget, Event>> for a given event fun <T : Widget> T.eventFlow(event: String): Flow<Pair<T, Event>> |
(js)
onClick |
An extension function for defining on click event handlers. fun <T : Widget> T.onClick(handler: T.(MouseEvent) -> Unit): Int |
(js)
onEvent |
An extension function for defining event handlers. fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int |
(js)
removeBsBgColor |
fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit |
(js)
removeBsBorder |
fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit |
(js)
removeBsClearfix |
fun Component.removeBsClearfix(): Unit |
(js)
removeBsColor |
fun Component.removeBsColor(bsColor: BsColor): Unit |
(js)
removeBsRounded |
fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit |
(js)
setContextMenu |
Sets context menu for the current widget. fun Widget.setContextMenu(contextMenu: ContextMenu): Widget |
(js)
style |
DSL builder extension function. fun Widget.style(className: String? = null, init: (Style.() -> Unit)? = null): Style |