slackline/element/datepicker

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

Attributes for element.datepicker.

Values

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

A confirmation dialog shown after a date is selected.

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

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

pub fn initial_date(
  initial_date: String,
) -> block.Attr(block.DatepickerElement)

The initially selected date, YYYY-MM-DD.

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

Placeholder text. Maximum 150 characters.

✨ Search Document