m3e/selection_list
SelectionList is a list of selectable options.
This file was generated by m3e/generator
DO NOT EDIT
Types
Config is a public record for configuring this component.
pub type Config {
Config(
hide_selection_indicator: HideSelectionIndicator,
multi: Multi,
variant: list_variant.ListVariant,
name: String,
disabled: Disabled,
)
}
Constructors
-
Config( hide_selection_indicator: HideSelectionIndicator, multi: Multi, variant: list_variant.ListVariant, name: String, disabled: Disabled, )
Disabled is whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
HideSelectionIndicator is whether to hide the selection indicator.
pub type HideSelectionIndicator {
IsHideSelectionIndicator
IsNotHideSelectionIndicator
}
Constructors
-
IsHideSelectionIndicator -
IsNotHideSelectionIndicator
Multi is whether multiple items can be selected.
pub type Multi {
IsMulti
IsNotMulti
}
Constructors
-
IsMulti -
IsNotMulti
SelectionList is a View Model for this component
Fields:
- hide_selection_indicator: Whether to hide the selection indicator.
- multi: Whether multiple items can be selected.
- variant: The appearance variant of the list.
- name: The name that identifies the element when submitting the associated form.
- disabled: Whether the element is disabled.
pub opaque type SelectionList
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_variant: list_variant.ListVariant
pub fn disabled(
record: SelectionList,
disabled: Disabled,
) -> SelectionList
disabled sets the value of disabled for this SelectionList.
pub fn from_config(config: Config) -> SelectionList
from_config creates a new SelectionList from the given configuration.
pub fn hide_selection_indicator(
record: SelectionList,
hide_selection_indicator: HideSelectionIndicator,
) -> SelectionList
hide_selection_indicator sets the value of hide_selection_indicator for this SelectionList.
pub fn multi(
record: SelectionList,
multi: Multi,
) -> SelectionList
multi sets the value of multi for this SelectionList.
pub fn name(record: SelectionList, name: String) -> SelectionList
name sets the value of name for this SelectionList.
pub fn new() -> SelectionList
new creates a new SelectionList with the default configuration.
pub fn render(
model: SelectionList,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a SelectionList
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 SelectionList Config
pub fn variant(
record: SelectionList,
variant: list_variant.ListVariant,
) -> SelectionList
variant sets the value of variant for this SelectionList.