m3e/chipset
chipset provides Lustre support for the M3E Chip Set component
Types
Chipset contains all the information for a ChipSet
Fields:
- interaction: disable the chip set in its entirety
- selection_indicator: hide selection indicators
- selection_mode: Whether multiple chips can be selected
- type_: the chipset type
- orientation: Whether the element is oriented vertically
pub opaque type ChipSet
Config holds the configuration for a ChipSet
pub type Config {
Config(
interaction: state.Interaction,
selection_indicator: config.SelectionIndicator,
selection_mode: config.SelectionMode,
type_: Type,
orientation: layout.Orientation,
)
}
Constructors
-
Config( interaction: state.Interaction, selection_indicator: config.SelectionIndicator, selection_mode: config.SelectionMode, type_: Type, orientation: layout.Orientation, )
Values
pub fn default_config() -> Config
default_config creates a new Config with default values
pub const default_type: Type
pub fn disabled(
c: ChipSet,
interaction: state.Interaction,
) -> ChipSet
disabled sets the interaction field
pub fn hide_selection_indicator(
c: ChipSet,
indicator: config.SelectionIndicator,
) -> ChipSet
hide_selection_indicator sets the selection_indicator field
pub fn multi(c: ChipSet, mode: config.SelectionMode) -> ChipSet
multi sets the selection_mode field
pub fn render(
s: ChipSet,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element from a ChipSet
pub fn render_config(
config: Config,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render_config creates a Lustre Element directly from a Config
pub fn vertical(
s: ChipSet,
orientation: layout.Orientation,
) -> ChipSet
vertical sets the orientation field