This module helps you start your SliceShow application.
Protected (PrivateConfig a b)
Slideshow Config type
init : List (Slide a b) -> Config a b
Init Model from the list of slides
show : Config a b -> Platform.Program () (Model a b) (Messages.Message b)
Start the SliceShow with your slides
:
app = show (init slides)
main = app.html
port tasks : Signal (Task.Task Never ())
port tasks = app.tasks
setView : (a -> Html b) -> Config a b -> Config a b
Set view for the custom content
setUpdate : (b -> a -> ( a, Platform.Cmd.Cmd b )) -> Config a b -> Config a b
Set update for the custom content
setSubscriptions : (a -> Platform.Sub.Sub b) -> Config a b -> Config a b
Set inputs for the custom content
Model a b
Model type
Messages.Message b
Message type