A time picker in pure elm.
{ hours : Basics.Int
, minutes : Basics.Int
, seconds : Basics.Int
}
The base way to represent time. Hours are always counted in 24-hour format with midnight at 0
The base model for the time picker
{ showHours : Basics.Bool
, showMinutes : Basics.Bool
, showSeconds : Basics.Bool
, use24Hours : Basics.Bool
, placeholder : String
, hourStep : Basics.Int
, minuteStep : Basics.Int
, secondStep : Basics.Int
, disabled : Basics.Bool
, hideDisabledOptions : Basics.Bool
, isHourDisabled : Basics.Int -> Basics.Bool
, isMinuteDisabled : Basics.Int -> Basics.Bool
, isSecondDisabled : Basics.Int -> Basics.Bool
, isPeriodDisabled : Period -> Basics.Bool
}
Contains the configuration that doesn't need to be maintained by the library.
Period denotes whether its AM or PM when using 12-hour format
defaultSettings : Settings
The basic configuration for a TimePicker
selectedTime : TimePicker -> Maybe Time
Returns the current value of the time picker
init : Maybe Time -> TimePicker
Function for initializing a closed and empty TimePicker
The internal messages that the picker uses to operate
Used to communicate to the caller that the value has been set, changed, or cleared.
update : Settings -> Msg -> TimePicker -> ( TimePicker, TimeEvent )
Function to update the model when messages come
view : Settings -> TimePicker -> Html Msg
Function for viewing the time picker