m3e/breadcrumb_item

BreadcrumbItem is an item in a breadcrumb.

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

     DO NOT EDIT

Types

BreadcrumbItem is a View Model for this component

Fields:

  • item_label: The accessible label given to the item’s internal button.
  • disabled: Whether the element is disabled.
  • current: Indicates the current item in the breadcrumb path.
  • href: The URL to which the internal breadcrumb link button points.
  • target: The target of the internal breadcrumb link button.
  • download: A value indicating whether the internal link target will be downloaded, optionally specifying a file name.
  • rel: The relationship between the internal link target and the document.
pub opaque type BreadcrumbItem

Config is a public record for configuring this component.

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

Constructors

Disabled is whether the element is disabled.

pub type Disabled {
  IsDisabled
  IsNotDisabled
}

Constructors

  • IsDisabled
  • IsNotDisabled

Values

pub fn current(
  record: BreadcrumbItem,
  current: option.Option(
    breadcrumb_item_current.BreadcrumbItemCurrent,
  ),
) -> BreadcrumbItem

current sets the value of current for this BreadcrumbItem.

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_item_label: String
pub const default_rel: String
pub fn disabled(
  record: BreadcrumbItem,
  disabled: Disabled,
) -> BreadcrumbItem

disabled sets the value of disabled for this BreadcrumbItem.

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

download sets the value of download for this BreadcrumbItem.

pub fn from_config(config: Config) -> BreadcrumbItem

from_config creates a new BreadcrumbItem from the given configuration.

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

href sets the value of href for this BreadcrumbItem.

pub fn item_label(
  record: BreadcrumbItem,
  item_label: String,
) -> BreadcrumbItem

item_label sets the value of item_label for this BreadcrumbItem.

pub fn new() -> BreadcrumbItem

new creates a new BreadcrumbItem with the default configuration.

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

rel sets the value of rel for this BreadcrumbItem.

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

render creates a Lustre Element for a BreadcrumbItem

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 BreadcrumbItem Config

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

target sets the value of target for this BreadcrumbItem.

Search Document