m3e/nav_menu_item_group

nav_menu_item_group provides Lustre support for the M3E Nav Menu Item Group component

Types

nav_menu_item_group

Fields:

  • heading: Renders the label of the group
pub opaque type NavMenuItemGroup

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

pub type Slot {
  Label
}

Constructors

  • Label

Values

pub fn heading(
  group: NavMenuItemGroup,
  heading: String,
) -> NavMenuItemGroup

heading sets the heading of the group

pub fn new(heading: String) -> NavMenuItemGroup

new creates a nav-menu-item-group

Parameters:

  • heading: Renders the label of the group
pub fn render(
  group: NavMenuItemGroup,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)

render creates a Lustre Element(msg) from a NavMenuItemGroup

Parameters:

  • group: a NavMenuItemGroup
  • attributes: additional attributes
  • children: nested nav_menu_items and possible one or more dividers
pub fn slot(s: Slot) -> attribute.Attribute(msg)

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

Search Document