m3e/input_chip_set
InputChipSet is a container that transforms user input into a cohesive set of interactive chips, supporting entry, editing, and removal of discrete values.
This file was generated by m3e/generator
DO NOT EDIT
Types
Disabled is whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
InputChipSet is a View Model for this component
Fields:
- disabled: Whether the element is disabled.
- name: The name that identifies the element when submitting the associated form.
- required: Whether a value is required for the element.
- vertical: Whether the element is oriented vertically.
pub opaque type InputChipSet
Required is whether a value is required for the element.
pub type Required {
IsRequired
IsNotRequired
}
Constructors
-
IsRequired -
IsNotRequired
Slots are used in child elements to insert content into this component
pub type Slot {
Input
}
Constructors
-
Input
Values
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_disabled: Disabled
pub const default_name: String
pub const default_required: Required
pub const default_vertical: Vertical
pub fn disabled(
record: InputChipSet,
disabled: Disabled,
) -> InputChipSet
disabled sets the value of disabled for this InputChipSet.
pub fn from_config(config: Config) -> InputChipSet
from_config creates a new InputChipSet from the given configuration.
pub fn name(record: InputChipSet, name: String) -> InputChipSet
name sets the value of name for this InputChipSet.
pub fn render(
model: InputChipSet,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a InputChipSet
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 InputChipSet Config
pub fn required(
record: InputChipSet,
required: Required,
) -> InputChipSet
required sets the value of required for this InputChipSet.
pub fn slot(s: Slot) -> attribute.Attribute(msg)
slot returns a Lustre Attribute(msg) for the given slot name
pub fn vertical(
record: InputChipSet,
vertical: Vertical,
) -> InputChipSet
vertical sets the value of vertical for this InputChipSet.