Formerly tricycle/elm-infinite-gallery, tricycle/elm-infnite-gallery. Search finds this package by either name.
A convenience function that returns some default configuration options.
A number of milliseconds to spend transitioning between indices.
Create a new Gallery, with given size, config and slides
Update the gallery with given Msg. You would need to wrap and unwrap these Msg's inside your own update function.
Example:
type Msg
= MsgForGallery Gallery.Msg
update : Msg -> Model -> Model
update msg model =
case msg of
MsgForGallery msg ->
{ model | gallery = Gallery.update msg model.gallery }Render your gallery e.g.
Example:
type Msg
= MsgForGallery Gallery.Msg
view : Model -> Html Msg
view model =
Html.div []
[ Gallery.view model.gallery
|> Html.map MsgForGallery
]Retrieve the current displayed Slide index
The model of a Gallery You can create a new Gallery using the init function.
The Gallery's internal Msg's
The configuration options of a Gallery. These can be passed in while initializing a new Gallery.