MdListItem

open class MdListItem(text: String? = null, type: ListItemType = ListItemType.Text, disabled: Boolean = false, href: String? = null, target: LinkTarget? = null, className: String? = null, init: MdListItem.() -> Unit? = null) : MdItemWidget, HasHeadlineSlot, HasLeadingSlot, HasSupportingTextSlot, HasTrailingSlot, HasTrailingSupportingTextSlot

List items are element that belongs to a List.

See https://material-web.dev/components/list/

Author

Maanrifa Bacar Ali

Constructors

Link copied to clipboard
constructor(text: String? = null, type: ListItemType = ListItemType.Text, disabled: Boolean = false, href: String? = null, target: LinkTarget? = null, className: String? = null, init: MdListItem.() -> Unit? = null)

Properties

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

Disables the item and makes it non-selectable and non-interactive.

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

The URL that the item points to.

Link copied to clipboard
open var parent: <Error class: unknown class>?
Link copied to clipboard
var target: <Error class: unknown class>

Where to display the linked href URL.

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

Text of this item.

Link copied to clipboard

Sets the behavior of the list item.

Functions

Link copied to clipboard
open fun afterCreate(node: <Error class: unknown class>)
Link copied to clipboard
open fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard
open fun dispose()
Link copied to clipboard
open override fun headline(component: <Error class: unknown class>?)
Link copied to clipboard
fun HasHeadlineSlot.headline(text: String): <Error class: unknown class>

Sets the text to the headline slot.

Link copied to clipboard
open override fun leading(component: <Error class: unknown class>?)
Link copied to clipboard

Sets the icon identified by name to the leading slot.

Link copied to clipboard
open override fun render(): <Error class: unknown class>
Link copied to clipboard
open override fun supportingText(component: <Error class: unknown class>?)
Link copied to clipboard
fun HasSupportingTextSlot.supportingText(text: String): <Error class: unknown class>

Sets the text to the supporting text slot.

Link copied to clipboard
open override fun trailing(component: <Error class: unknown class>?)
Link copied to clipboard

Sets the icon identified by name to the trailing slot.

Link copied to clipboard
open override fun trailingSupportingText(component: <Error class: unknown class>?)
Link copied to clipboard
fun HasTrailingSupportingTextSlot.trailingSupportingText(text: String): <Error class: unknown class>

Sets the text to the trailing supporting text slot.