m3e/mlist

Mlist is a list of items.

This file was generated by m3e/generator

     DO NOT EDIT

Types

Mlist is a View Model for this component

Fields:

  • variant: The appearance variant of the list.
pub opaque type Mlist

Values

pub fn new(variant: list_variant.ListVariant) -> Mlist

new creates a new Mlist with the default configuration.

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

render creates a Lustre Element for a Mlist

pub fn variant(
  arg: Mlist,
  variant: list_variant.ListVariant,
) -> Mlist

variant sets the value of variant for this Mlist.

Search Document