slackline/element/static_select

This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.

Attributes for element.static_select.

Values

pub fn confirm(
  confirm: block.ConfirmationDialog,
) -> block.Attr(block.StaticSelectElement)

A confirmation dialog shown after an item is selected.

pub fn focus_on_load(
  focus_on_load: Bool,
) -> block.Attr(block.StaticSelectElement)

Whether to auto focus this element in a view. Defaults to false.

pub fn initial_option(
  initial_option: block.SelectOption,
) -> block.Attr(block.StaticSelectElement)

The option selected when the menu loads.

pub fn option_groups(
  option_groups: List(block.OptionGroup),
) -> block.Attr(block.StaticSelectElement)

Option groups. Maximum 100. Leave it out when you set options.

pub fn options(
  options: List(block.SelectOption),
) -> block.Attr(block.StaticSelectElement)

The options. Maximum 100. Leave it out when you set option_groups.

pub fn placeholder(
  placeholder: String,
) -> block.Attr(block.StaticSelectElement)

Placeholder text. Maximum 150 characters.

✨ Search Document