m3e/list_action
ListAction is an item in a list that performs an action.
This file was generated by m3e/generator
DO NOT EDIT
Types
Config is a public record for configuring this component.
pub type Config {
Config(
disabled: Disabled,
download: option.Option(String),
href: String,
rel: String,
target: option.Option(link_target.LinkTarget),
)
}
Constructors
-
Config( disabled: Disabled, download: option.Option(String), href: String, rel: String, target: option.Option(link_target.LinkTarget), )
Disabled is whether the element is disabled.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
ListAction is a View Model for this component
Fields:
- disabled: Whether the element is disabled.
- 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.
- rel: The relationship between the
targetof the link button and the document. - target: The target of the link button.
pub opaque type ListAction
Values
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_disabled: Disabled
pub const default_download: option.Option(String)
pub const default_href: String
pub const default_rel: String
pub const default_target: option.Option(link_target.LinkTarget)
pub fn disabled(
record: ListAction,
disabled: Disabled,
) -> ListAction
disabled sets the value of disabled for this ListAction.
pub fn download(
record: ListAction,
download: option.Option(String),
) -> ListAction
download sets the value of download for this ListAction.
pub fn from_config(config: Config) -> ListAction
from_config creates a new ListAction from the given configuration.
pub fn href(record: ListAction, href: String) -> ListAction
href sets the value of href for this ListAction.
pub fn rel(record: ListAction, rel: String) -> ListAction
rel sets the value of rel for this ListAction.
pub fn render(
model: ListAction,
attributes: List(attribute.Attribute(msg)),
children: List(element.Element(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a ListAction
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 ListAction Config
pub fn slot(s: Slot) -> attribute.Attribute(msg)
slot returns a Lustre Attribute(msg) for the given slot name
pub fn target(
record: ListAction,
target: option.Option(link_target.LinkTarget),
) -> ListAction
target sets the value of target for this ListAction.