slackline/element/number_input
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Attributes for element.number_input.
Values
pub fn dispatch_action_config(
dispatch_action_config: block.DispatchActionConfig,
) -> block.Attr(block.NumberInputElement)
When the element dispatches block_actions payloads.
pub fn focus_on_load(
focus_on_load: Bool,
) -> block.Attr(block.NumberInputElement)
Whether to auto focus this element in a view. Defaults to false.
pub fn initial_value(
initial_value: String,
) -> block.Attr(block.NumberInputElement)
The initial value.
pub fn max_value(
max_value: String,
) -> block.Attr(block.NumberInputElement)
The maximum value. It cannot be less than min_value.
pub fn min_value(
min_value: String,
) -> block.Attr(block.NumberInputElement)
The minimum value. It cannot be greater than max_value.
pub fn placeholder(
placeholder: String,
) -> block.Attr(block.NumberInputElement)
Placeholder text. Maximum 150 characters.