m3e/action_list

action_list provides Lustre support for the M3E Action List component

Types

ActionList provides a specialized list container for action-based interactions following Material 3 design principles

Fields:

  • variant: The appearance variant of the list
pub opaque type ActionList

Values

pub fn new(variant: list_variant.Variant) -> ActionList

new creates an ActionList with default values

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

render creates a Lustre Element from an ActionList

pub fn variant(
  arg: ActionList,
  variant: list_variant.Variant,
) -> ActionList

variant sets the variant field

Search Document