m3e/drawer_toggle

drawer_toggle provides Lustre support for the M3E Drawer Toggle component

Types

DrawerToggle toggles the opened state of a drawer

Fields:

  • for: the id of the drawer to toggle
pub opaque type DrawerToggle

Values

pub fn new(for: String) -> DrawerToggle

new creates a DrawerToggle

Parameters:

  • for: the id of the drawer to toggle
pub fn render(
  c: DrawerToggle,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)

render creates a Lustre Element from a DrawerToggle

Parameters:

  • c: a DrawerToggle
  • attributes: a list of additional Attributes
  • children: a list of child Elements
Search Document