OnsList

open class OnsList(inset: Boolean = false, noborder: Boolean = false, className: String? = null, init: OnsList.() -> Unit? = null)

An Onsen UI list component.

Parameters

inset

whether the list doesn’t cover the whole width of the parent

noborder

whether the list has no borders at the top and bottom

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
constructor(inset: Boolean = false, noborder: Boolean = false, className: String? = null, init: OnsList.() -> Unit? = null)

Creates a list component.

Properties

Link copied to clipboard

Whether the list doesn’t cover the whole width of the parent.

Link copied to clipboard

A modifier attribute to specify custom styles.

Link copied to clipboard

Whether the list has no borders at the top and bottom.

Functions

Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
fun OnsList.header(content: String? = null, rich: Boolean = false, align: <Error class: unknown class>? = null, className: String? = null, init: OnsListHeader.() -> Unit? = null): OnsListHeader

DSL builder extension function.

Link copied to clipboard
fun OnsList.item(content: String? = null, rich: Boolean = false, tappable: Boolean? = null, divider: DividerType? = null, className: String? = null, init: OnsListItem.() -> Unit? = null): OnsListItem

DSL builder extension function.

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

DSL builder extension function.

fun OnsList.onsLazyRepeat(itemsCount: Int, className: String? = null, createItemContentCallback: (index: Int) -> <Error class: unknown class>): OnsLazyRepeat

DSL builder extension function for simple configuration.

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