m3e/fab_menu_item

Types

FabMenuItem is an item of a floating action button (FAB) menu

Fields:

  • disabled: Whether the element is disabled
  • link: Whether the Item acts as a Link
pub opaque type FabMenuItem

Slot gives type-safe names to each of the defined HTML named slots

pub type Slot {
  Icon
}

Constructors

  • Icon

Values

pub fn disabled(f: FabMenuItem, disabled: Bool) -> FabMenuItem

disabled sets the disabled field

pub fn link(
  f: FabMenuItem,
  link: option.Option(link.Link),
) -> FabMenuItem

link sets the link field

pub fn new() -> FabMenuItem

new creates a new FabMenuItem

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

render creates a Lustre Element from a FabMenuItem

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

slot creates a Lustre ‘slot’ Attribute(msg) for a Slot

Search Document