m3e/list_option
ListOption is a selectable option in a list.
This file was generated: By: m3e/generator version 0.1.0 At: 2026-05-05T14:38:23+10:00
DO NOT EDIT
Types
Disabled is whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
ListOption is a View Model for this component
Fields:
- disabled: Whether the element is disabled.
- selected: Whether the element is selected.
- value: A string representing the value of the option.
pub opaque type ListOption
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 const default_value: String
pub fn disabled(
record: ListOption,
disabled: Disabled,
) -> ListOption
disabled sets the value of disabled for this ListOption.
pub fn from_config(config: Config) -> ListOption
from_config creates a new ListOption from the given configuration.
pub fn render(
model: ListOption,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a ListOption
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 ListOption Config
pub fn selected(
record: ListOption,
selected: Selected,
) -> ListOption
selected sets the value of selected for this ListOption.
pub fn slot(s: Slot) -> attribute.Attribute(msg)
slot returns a Lustre Attribute(msg) for the given slot name
pub fn value(record: ListOption, value: String) -> ListOption
value sets the value of value for this ListOption.