OnsListItem

open class OnsListItem(content: String? = null, rich: Boolean = false, tappable: Boolean? = null, divider: DividerType? = null, className: String? = null, init: OnsListItem.() -> Unit? = null)

An Onsen UI list item component.

Parameters

content

the content of the center section

rich

whether content can contain HTML code

tappable

whether the element reacts to taps

divider

a divider type

className

CSS class names

init

an initializer extension function

Constructors

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

Creates a list item component.

Properties

Link copied to clipboard

Determines if the transitions are animated.

Link copied to clipboard
val centerPanel: <Error class: unknown class>

The center section of the list item.

Link copied to clipboard
var content: <Error class: unknown class>

The content of the center section.

Link copied to clipboard

The divider type.

Link copied to clipboard
val expandablePanel: <Error class: unknown class>

The expandable section of the list item.

Link copied to clipboard
val leftPanel: <Error class: unknown class>

The left section of the list item.

Link copied to clipboard

Prevent vertical scrolling when the user drags horizontally.

Link copied to clipboard

A modifier attribute to specify custom styles.

Link copied to clipboard
var rich: <Error class: unknown class>

Whether content can contain HTML code.

Link copied to clipboard
val rightPanel: <Error class: unknown class>

The right section of the list item.

Link copied to clipboard
var tapBackgroundColor: <Error class: unknown class>?

Changes the background color when tapped.

Link copied to clipboard

Whether the element reacts to taps.

Functions

Link copied to clipboard
open fun add(child: <Error class: unknown class>)
open fun add(position: Int, child: <Error class: unknown class>)
Link copied to clipboard
open fun addAll(children: List<<Error class: unknown class>>)
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun center(content: String? = null, rich: Boolean = false, builder: <Error class: unknown class>.() -> Unit? = null)

A DSL builder for the center section of the list item.

Link copied to clipboard
open fun dispose()
Link copied to clipboard
open fun disposeAll()
Link copied to clipboard
open fun expandable(content: String? = null, rich: Boolean = false, builder: <Error class: unknown class>.() -> Unit? = null)

A DSL builder for the expandable section of the list item.

Link copied to clipboard
open fun getChildren(): List<<Error class: unknown class>>
Link copied to clipboard
open fun hideExpansion()

Hides the expandable content if the element is expandable.

Link copied to clipboard
open fun left(content: String? = null, rich: Boolean = false, builder: <Error class: unknown class>.() -> Unit? = null)

A DSL builder for the left section of the list item.

Link copied to clipboard
open fun remove(child: <Error class: unknown class>)
Link copied to clipboard
open fun removeAll()
Link copied to clipboard
open fun removeAt(position: Int)
Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard
open fun right(content: String? = null, rich: Boolean = false, builder: <Error class: unknown class>.() -> Unit? = null)

A DSL builder for the right section of the list item.

Link copied to clipboard
open fun showExpansion()

Shows the expandable content if the element is expandable.