slackline/element/multi_static_select
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Attributes for element.multi_static_select.
Values
pub fn confirm(
confirm: block.ConfirmationDialog,
) -> block.Attr(block.MultiStaticSelectElement)
A confirmation dialog shown before the choices are submitted.
pub fn focus_on_load(
focus_on_load: Bool,
) -> block.Attr(block.MultiStaticSelectElement)
Whether to auto focus this element in a view. Defaults to false.
pub fn initial_options(
initial_options: List(block.SelectOption),
) -> block.Attr(block.MultiStaticSelectElement)
Options selected when the menu loads.
pub fn max_selected_items(
max_selected_items: Int,
) -> block.Attr(block.MultiStaticSelectElement)
Maximum number of selected items. Minimum 1.
pub fn option_groups(
option_groups: List(block.OptionGroup),
) -> block.Attr(block.MultiStaticSelectElement)
Option groups. Maximum 100. Leave it out when you set options.
pub fn options(
options: List(block.SelectOption),
) -> block.Attr(block.MultiStaticSelectElement)
The options. Maximum 100. Leave it out when you set option_groups.
pub fn placeholder(
placeholder: String,
) -> block.Attr(block.MultiStaticSelectElement)
Placeholder text. Maximum 150 characters.