Ons List Item
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
class Name
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
The center section of the list item.
Link copied to clipboard
The divider type.
Link copied to clipboard
The expandable section of the list item.
Link copied to clipboard
Prevent vertical scrolling when the user drags horizontally.
Link copied to clipboard
The right section of the list item.
Link copied to clipboard
Changes the background color when tapped.
Functions
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Hides the expandable content if the element is expandable.
Link copied to clipboard
Shows the expandable content if the element is expandable.