m3e/toc_item
TocItem is an item in a table of contents.
This file was generated by m3e/generator
DO NOT EDIT
Types
Disabled is a value indicating whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
Selected is whether the element is selected.
pub type Selected {
IsSelected
IsNotSelected
}
Constructors
-
IsSelected -
IsNotSelected
Values
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_disabled: Disabled
pub const default_selected: Selected
pub fn disabled(record: TocItem, disabled: Disabled) -> TocItem
disabled sets the value of disabled for this TocItem.
pub fn from_config(config: Config) -> TocItem
from_config creates a new TocItem from the given configuration.
pub fn render(
model: TocItem,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a TocItem
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 TocItem Config