m3e/menu_item
menu_item provides Lustre support for the M3E Menu Item component
Types
MenuItem is an item of a menu
Fields:
- disabled: Whether the element is disabled
- link: Whether the element is a link
pub opaque type MenuItem
Values
pub fn link(
m: MenuItem,
link: option.Option(link.Link),
) -> MenuItem
link sets the link field
Parameters:
- m: a MenuItem
- link: a Link
pub fn render(
m: MenuItem,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element from a MenuItem
pub fn slot(s: Slot) -> attribute.Attribute(msg)
slot creates a Lustre ‘slot’ Attribute(msg) for a Slot