Each functions in this module has the same interface as Browser.App
sandbox : (model -> String) -> (msg -> String) -> TimeTravelConfig -> { init : model, view : model -> Html msg, update : msg -> model -> model } -> Platform.Program () (TimeTravel.Internal.Model.Model model msg) (Msg msg)
See Browser.sandbox
element : (model -> String) -> (msg -> String) -> TimeTravelConfig -> { init : flags -> ( model, Platform.Cmd.Cmd msg ), view : model -> Html msg, update : msg -> model -> ( model, Platform.Cmd.Cmd msg ), subscriptions : model -> Platform.Sub.Sub msg } -> Platform.Program flags (TimeTravel.Internal.Model.Model model msg) (Msg msg)
See Browser.element
document : (model -> String) -> (msg -> String) -> TimeTravelConfig -> { init : flags -> ( model, Platform.Cmd.Cmd msg ), view : model -> Browser.Document msg, update : msg -> model -> ( model, Platform.Cmd.Cmd msg ), subscriptions : model -> Platform.Sub.Sub msg } -> Platform.Program flags (TimeTravel.Internal.Model.Model model msg) (Msg msg)
See Browser.document
application : (model -> String) -> (msg -> String) -> TimeTravelConfig -> { init : flags -> Url -> Browser.Navigation.Key -> ( model, Platform.Cmd.Cmd msg ), view : model -> Browser.Document msg, update : msg -> model -> ( model, Platform.Cmd.Cmd msg ), subscriptions : model -> Platform.Sub.Sub msg, onUrlRequest : Browser.UrlRequest -> msg, onUrlChange : Url -> msg } -> Platform.Program flags (TimeTravel.Internal.Model.Model model msg) (Msg msg)
defaultConfig : TimeTravelConfig
Default configuration record
{ startMinimized : Basics.Bool
, startToLeft : Basics.Bool
}
Record annotation if you want to please elm-format