m3e/fab_menu_item

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

This file was generated: By: m3e/generator version 0.1.0 At: 2026-05-05T14:38:23+10:00

     DO NOT EDIT

Types

Config is a public record for configuring this component.

pub type Config {
  Config(
    disabled: Disabled,
    download: option.Option(String),
    href: String,
    rel: String,
    target: option.Option(link_target.LinkTarget),
  )
}

Constructors

Disabled is whether the element is disabled.

pub type Disabled {
  IsDisabled
  IsNotDisabled
}

Constructors

  • IsDisabled
  • IsNotDisabled

FabMenuItem is a View Model for this component

Fields:

  • disabled: Whether the element is disabled.
  • download: A value indicating whether the target of the link button will be downloaded, optionally specifying the new name of the file.
  • href: The URL to which the link button points.
  • rel: The relationship between the target of the link button and the document.
  • target: The target of the link button.
pub opaque type FabMenuItem

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

pub type Slot {
  Icon
}

Constructors

  • Icon

Values

pub fn default_config() -> Config

default_config is the default configuration for this component.

pub const default_disabled: Disabled
pub const default_download: option.Option(String)
pub const default_href: String
pub const default_rel: String
pub fn disabled(
  record: FabMenuItem,
  disabled: Disabled,
) -> FabMenuItem

disabled sets the value of disabled for this FabMenuItem.

pub fn download(
  record: FabMenuItem,
  download: option.Option(String),
) -> FabMenuItem

download sets the value of download for this FabMenuItem.

pub fn from_config(config: Config) -> FabMenuItem

from_config creates a new FabMenuItem from the given configuration.

pub fn href(record: FabMenuItem, href: String) -> FabMenuItem

href sets the value of href for this FabMenuItem.

pub fn new() -> FabMenuItem

new creates a new FabMenuItem with the default configuration.

pub fn rel(record: FabMenuItem, rel: String) -> FabMenuItem

rel sets the value of rel for this FabMenuItem.

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

render creates a Lustre Element for a FabMenuItem

pub fn render_config(
  c: Config,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)

render_config creates a Lustre Element from a FabMenuItem Config

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

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

pub fn target(
  record: FabMenuItem,
  target: option.Option(link_target.LinkTarget),
) -> FabMenuItem

target sets the value of target for this FabMenuItem.

Search Document