m3e/select
Select is a form control that allows users to select a value from a set of predefined options.
This file was generated: By: m3e/generator version 0.1.0 At: 2026-05-05T14:38:23+10:00
DO NOT EDIT
Types
Config is a public record for configuring this component.
pub type Config {
Config(
disabled: Disabled,
hide_selection_indicator: HideSelectionIndicator,
multi: Multi,
name: String,
panel_class: String,
required: Required,
)
}
Constructors
-
Config( disabled: Disabled, hide_selection_indicator: HideSelectionIndicator, multi: Multi, name: String, panel_class: String, required: Required, )
Disabled is whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
HideSelectionIndicator is whether to hide the selection indicator for single select options.
pub type HideSelectionIndicator {
IsHideSelectionIndicator
IsNotHideSelectionIndicator
}
Constructors
-
IsHideSelectionIndicator -
IsNotHideSelectionIndicator
Multi is whether multiple options can be selected.
pub type Multi {
IsMulti
IsNotMulti
}
Constructors
-
IsMulti -
IsNotMulti
Required is whether the element is required.
pub type Required {
IsRequired
IsNotRequired
}
Constructors
-
IsRequired -
IsNotRequired
Select is a View Model for this component
Fields:
- disabled: Whether the element is disabled.
- hide_selection_indicator: Whether to hide the selection indicator for single select options.
- multi: Whether multiple options can be selected.
- name: The name that identifies the element when submitting the associated form.
- panel_class: Class or list of classes to be applied to the select’s overlay panel.
- required: Whether the element is required.
pub opaque type Select
Values
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_disabled: Disabled
pub const default_hide_selection_indicator: HideSelectionIndicator
pub const default_multi: Multi
pub const default_name: String
pub const default_panel_class: String
pub const default_required: Required
pub fn disabled(record: Select, disabled: Disabled) -> Select
disabled sets the value of disabled for this Select.
pub fn from_config(config: Config) -> Select
from_config creates a new Select from the given configuration.
pub fn hide_selection_indicator(
record: Select,
hide_selection_indicator: HideSelectionIndicator,
) -> Select
hide_selection_indicator sets the value of hide_selection_indicator for this Select.
pub fn panel_class(record: Select, panel_class: String) -> Select
panel_class sets the value of panel_class for this Select.
pub fn render(
model: Select,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a Select
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 Select Config
pub fn required(record: Select, required: Required) -> Select
required sets the value of required for this Select.
pub fn slot(s: Slot) -> attribute.Attribute(msg)
slot returns a Lustre Attribute(msg) for the given slot name