w0rm / elm-slice-show / SliceShow

This module helps you start your SliceShow application.

Start your Application


type alias Config a b =
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


type alias Model a b =
Model a b

Model type


type alias Message b =
Messages.Message b

Message type