m3e/pseudo_checkbox
PseudoCheckbox is an element which looks like a checkbox.
This file was generated by m3e/generator
DO NOT EDIT
Types
Checked is a value indicating whether the element is checked.
pub type Checked {
IsChecked
IsNotChecked
}
Constructors
-
IsChecked -
IsNotChecked
Config is a public record for configuring this component.
pub type Config {
Config(
checked: Checked,
disabled: Disabled,
indeterminate: Indeterminate,
)
}
Constructors
-
Config( checked: Checked, disabled: Disabled, indeterminate: Indeterminate, )
Disabled is a value indicating whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
Indeterminate is a value indicating whether the element’s checked state is indeterminate.
pub type Indeterminate {
IsIndeterminate
IsNotIndeterminate
}
Constructors
-
IsIndeterminate -
IsNotIndeterminate
PseudoCheckbox is a View Model for this component
Fields:
- checked: A value indicating whether the element is checked.
- disabled: A value indicating whether the element is disabled.
- indeterminate: A value indicating whether the element’s checked state is indeterminate.
pub opaque type PseudoCheckbox
Values
pub fn checked(
record: PseudoCheckbox,
checked: Checked,
) -> PseudoCheckbox
checked sets the value of checked for this PseudoCheckbox.
pub const default_checked: Checked
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_disabled: Disabled
pub const default_indeterminate: Indeterminate
pub fn disabled(
record: PseudoCheckbox,
disabled: Disabled,
) -> PseudoCheckbox
disabled sets the value of disabled for this PseudoCheckbox.
pub fn from_config(config: Config) -> PseudoCheckbox
from_config creates a new PseudoCheckbox from the given configuration.
pub fn indeterminate(
record: PseudoCheckbox,
indeterminate: Indeterminate,
) -> PseudoCheckbox
indeterminate sets the value of indeterminate for this PseudoCheckbox.
pub fn new() -> PseudoCheckbox
new creates a new PseudoCheckbox with the default configuration.
pub fn render(
model: PseudoCheckbox,
attributes: List(attribute.Attribute(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a PseudoCheckbox
pub fn render_config(
c: Config,
attributes: List(attribute.Attribute(msg)),
) -> element.Element(msg)
render_config creates a Lustre Element from a PseudoCheckbox Config