{ otherConfig | onChange : State -> Maybe DateTimePicker.DateTime.DateTime -> msg
, usePicker : Basics.Bool
, attributes : List (Html.Styled.Attribute msg)
, fromInput : String -> Maybe DateTimePicker.DateTime.DateTime
, toInput : DateTimePicker.DateTime.DateTime -> String
}
Configuration
onChange
is the message for when the selected value and internal State
in the date picker has changed.parseInput
accepts a user string from the input element and attempts to convert it to a DateTime{ nameOfDays : NameOfDays
, firstDayOfWeek : Time.Weekday
, allowYearNavigation : Basics.Bool
, earliestDate : Maybe DateTimePicker.DateTime.DateTime
}
Configuration for the DatePicker
nameOfDays
is the configuration for name of days in a week.firstDayOfWeek
is the first day of the week.allowYearNavigation
show/hide year navigation button.earliestDate
if given, dates before this cannot be selected{ sunday : String
, monday : String
, tuesday : String
, wednesday : String
, thursday : String
, friday : String
, saturday : String
}
Configuration for name of days in a week.
This will be displayed as the calendar's header. Default:
The type of picker (for Internal Use)
defaultDatePickerConfig : (State -> Maybe DateTimePicker.DateTime.DateTime -> msg) -> Config DatePickerConfig msg
Default configuration for DatePicker
onChange
No DefaultnameOfDays
see NameOfDays
for the default values.firstDayOfWeek
Default: Sunday.allowYearNavigation
Default : TrueearliestDate
Default : NothingdefaultTimePickerConfig : (State -> Maybe DateTimePicker.DateTime.DateTime -> msg) -> Config {} msg
Default configuration for TimePicker
onChange
No DefaultdateFormatter
Default: "%m/%d/%Y"
dateTimeFormatter
Default: "%m/%d/%Y %I:%M %p"
timeFormatter
Default: "%I:%M %p"
defaultDateTimePickerConfig : (State -> Maybe DateTimePicker.DateTime.DateTime -> msg) -> Config DatePickerConfig msg
Default configuration for DateTimePicker
onChange
No DefaultdateFormatter
Default: "%m/%d/%Y"
dateTimeFormatter
Default: "%m/%d/%Y %I:%M %p"
nameOfDays
see NameOfDays
for the default values.firstDayOfWeek
Default: Sunday.titleFormatter
Default: "%B %Y"
fullDateFormatter
Default: "%A, %B %d, %Y"
timeFormatter
Default: "%I:%M %p"
allowYearNavigation
Default : TrueearliestDate
Default : NothingdefaultDateFromInput : String -> Maybe DateTimePicker.DateTime.DateTime
Default date parser
defaultTimeFromInput : String -> Maybe DateTimePicker.DateTime.DateTime
Default time parser
defaultDateTimeFromInput : String -> Maybe DateTimePicker.DateTime.DateTime
Default date and time parser
defaultDateTimeToInput : DateTimePicker.DateTime.DateTime -> String
Default date and time printer
defaultDateToInput : DateTimePicker.DateTime.DateTime -> String
Default date printer
defaultTimeToInput : DateTimePicker.DateTime.DateTime -> String
Default time printer