ui/menu

Types

pub type SelectionMode {
  None
  Single
  Multiple
}

Constructors

  • None
  • Single
  • Multiple
pub type Size {
  Small
  Medium
  Large
}

Constructors

  • Small
  • Medium
  • Large
pub type Variant {
  Default
  Muted
}

Constructors

  • Default
  • Muted

Values

pub fn controls(id: String) -> attribute.Attribute(a)
pub fn expanded(expanded: Bool) -> attribute.Attribute(a)
pub fn menu(
  attributes: List(attribute.Attribute(a)),
  children: List(element.Element(a)),
) -> element.Element(a)
pub fn menu_item(
  attributes: List(attribute.Attribute(a)),
  children: List(element.Element(a)),
) -> element.Element(a)
pub fn menu_item_checkbox(
  attributes: List(attribute.Attribute(a)),
  checked: Bool,
  children: List(element.Element(a)),
) -> element.Element(a)
pub fn menu_item_radio(
  attributes: List(attribute.Attribute(a)),
  checked: Bool,
  children: List(element.Element(a)),
) -> element.Element(a)
pub fn menu_section(
  attributes: List(attribute.Attribute(a)),
  heading: String,
  children: List(element.Element(a)),
) -> element.Element(a)
pub fn separator(
  attributes: List(attribute.Attribute(a)),
) -> element.Element(a)
pub fn size(s: Size) -> attribute.Attribute(a)
pub fn trigger(
  attributes: List(attribute.Attribute(a)),
  children: List(element.Element(a)),
) -> element.Element(a)
Search Document