m3e/list_item

ListItem is an item in a list.

This file was generated by m3e/generator

     DO NOT EDIT

Types

ListItem is a View Model for this component

pub opaque type ListItem

Slots are used in child elements to insert content into this component

pub type Slot {
  Leading
  Overline
  SupportingText
  Trailing
}

Constructors

  • Leading
  • Overline
  • SupportingText
  • Trailing

Values

pub fn new() -> ListItem

new creates a new ListItem with the default configuration.

pub fn render(
  arg: ListItem,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)

render creates a Lustre Element for a ListItem

pub fn slot(s: Slot) -> attribute.Attribute(msg)

slot returns a Lustre Attribute(msg) for the given slot name

Search Document