m3e/assist_chip
AssistChip is a chip users interact with to perform a smart or automated action that can span multiple applications.
This file was generated: By: m3e/generator version 0.1.0 At: 2026-05-05T14:38:23+10:00
DO NOT EDIT
Types
AssistChip is a View Model for this component
Fields:
- disabled: A value indicating whether the element is disabled.
- disabled_interactive: A value indicating whether the element is disabled and interactive.
- download: A value indicating whether the
targetof the link button will be downloaded, optionally specifying the new name of the file. - href: The URL to which the link button points.
- name: The name of the element, submitted as a pair with the element’s
valueas part of form data, when the element is used to submit a form. - rel: The relationship between the
targetof the link button and the document. - target: The target of the link button.
- type_: The type of the element.
- value: A string representing the value of the chip.
- variant: The appearance variant of the chip.
pub opaque type AssistChip
Config is a public record for configuring this component.
pub type Config {
Config(
disabled: Disabled,
disabled_interactive: DisabledInteractive,
download: option.Option(String),
href: String,
name: String,
rel: String,
target: option.Option(link_target.LinkTarget),
type_: form_submitter_type.FormSubmitterType,
value: String,
variant: chip_variant.ChipVariant,
)
}
Constructors
-
Config( disabled: Disabled, disabled_interactive: DisabledInteractive, download: option.Option(String), href: String, name: String, rel: String, target: option.Option(link_target.LinkTarget), type_: form_submitter_type.FormSubmitterType, value: String, variant: chip_variant.ChipVariant, )
Disabled is a value indicating whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
DisabledInteractive is a value indicating whether the element is disabled and interactive.
pub type DisabledInteractive {
IsDisabledInteractive
IsNotDisabledInteractive
}
Constructors
-
IsDisabledInteractive -
IsNotDisabledInteractive
Values
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_disabled: Disabled
pub const default_disabled_interactive: DisabledInteractive
pub const default_download: option.Option(String)
pub const default_href: String
pub const default_name: String
pub const default_rel: String
pub const default_target: option.Option(link_target.LinkTarget)
pub const default_type_: form_submitter_type.FormSubmitterType
pub const default_value: String
pub const default_variant: chip_variant.ChipVariant
pub fn disabled(
record: AssistChip,
disabled: Disabled,
) -> AssistChip
disabled sets the value of disabled for this AssistChip.
pub fn disabled_interactive(
record: AssistChip,
disabled_interactive: DisabledInteractive,
) -> AssistChip
disabled_interactive sets the value of disabled_interactive for this AssistChip.
pub fn download(
record: AssistChip,
download: option.Option(String),
) -> AssistChip
download sets the value of download for this AssistChip.
pub fn from_config(config: Config) -> AssistChip
from_config creates a new AssistChip from the given configuration.
pub fn href(record: AssistChip, href: String) -> AssistChip
href sets the value of href for this AssistChip.
pub fn name(record: AssistChip, name: String) -> AssistChip
name sets the value of name for this AssistChip.
pub fn rel(record: AssistChip, rel: String) -> AssistChip
rel sets the value of rel for this AssistChip.
pub fn render(
model: AssistChip,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a AssistChip
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 AssistChip Config
pub fn slot(s: Slot) -> attribute.Attribute(msg)
slot returns a Lustre Attribute(msg) for the given slot name
pub fn target(
record: AssistChip,
target: option.Option(link_target.LinkTarget),
) -> AssistChip
target sets the value of target for this AssistChip.
pub fn type_(
record: AssistChip,
type_: form_submitter_type.FormSubmitterType,
) -> AssistChip
type_ sets the value of type_ for this AssistChip.
pub fn value(record: AssistChip, value: String) -> AssistChip
value sets the value of value for this AssistChip.
pub fn variant(
record: AssistChip,
variant: chip_variant.ChipVariant,
) -> AssistChip
variant sets the value of variant for this AssistChip.