Ons List
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
class Name
CSS class names
init
an initializer extension function
Constructors
Functions
Link copied to clipboard
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.