PanagiotisGeorgiadis / elm-datepicker / TimePicker.Types

This module contains the Public types that are being used by the parent application in order to create a TimePickerConfig for either the DatePicker or the DateRangePicker modules.

Types


type PickerType
    = HH ({ hoursStep : Basics.Int })
    | HH_MM ({ hoursStep : Basics.Int, minutesStep : Basics.Int })
    | HH_MM_SS ({ hoursStep : Basics.Int, minutesStep : Basics.Int, secondsStep : Basics.Int })
    | HH_MM_SS_MMMM ({ hoursStep : Basics.Int, minutesStep : Basics.Int, secondsStep : Basics.Int, millisecondsStep : Basics.Int })

Describes the different picker types along with their stepping function.

-- An `Hours` and `Minutes` picker. The `Hours` part
-- will increment / decrement their value by 1 whereas
-- the `Minutes` will increment / decrement by 5.
HH_MM { hoursStep = 1, minutesStep = 5 }

-- An `Hours`, `Minutes` and `Seconds` picker.
-- The `Hours` and `Minutes` will increment / decrement
-- their values by 1 whereas the `Seconds` will
-- increment / decrement by 10.
HH_MM_SS { hoursStep = 1, minutesStep = 1, secondsStep = 10 }