m3e/menu_item_radio
menu_item_radio provides Lustre support for the M3E Menu Item Radio component
Types
MenuItemRadio is an item of a menu which supports a mutually exclusive checkable state
Fields:
- checked: Whether the element is checked
- disabled: Whether the element is disabled
pub opaque type MenuItemRadio
Values
pub fn checked(
m: MenuItemRadio,
checked: types.CheckedState,
) -> MenuItemRadio
checked sets the checked field
pub fn disabled(
m: MenuItemRadio,
disabled: Bool,
) -> MenuItemRadio
disabled sets the disabled field
pub fn render(
m: MenuItemRadio,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element from a MenuItemRadio
pub fn slot(s: Slot) -> attribute.Attribute(msg)
slot creates a Lustre ‘slot’ Attribute(msg) for a Slot