elm-athlete/athlete/2.1.1

NOTE: the latest version is 7.0.0

BodyBuilder.Elements.DateTimePicker

Mobile like date time picker

type alias Model =
{ date : Posix
, dayLimits : ( RataDie, RataDie )
, dayPicker : WheelPicker
, hourPicker : WheelPicker
, minutePicker : WheelPicker
}

Model of the DateTime Picker

type Msg
= PickerMsg TimeUnit Msg

Msg of the DateTime Picker

init : ( RataDie, RataDie ) -> Model

The init function of the DateTime Picker

subscriptions : Model -> (Msg -> msg) -> Sub msg

The subscriptions function of the DateTime Picker

update : Msg -> Model -> (Msg -> msg) -> ( Model, Cmd msg )

The update function of the DateTime Picker

view : (Msg -> msg) -> Model -> NodeWithStyle msg

The view function of the DateTime Picker