Renamed to bellroy/elm-infinite-gallery. It is published under that name, and new versions come out there.
Versions published as tricycle/elm-infinite-gallery still install under that name. 10 versions of 12 come from the new location (see their notes). 2 versions could not be recovered and cannot be installed.
Rerouted (fork, verified). The original repository is gone. This copy comes from a fork that still has the tag. The Lamdera package server serves a copy recovered from https://github.com/lrworth/elm-infinite-gallery (a fork).
What we checked: Rebuilt with git archive from commit 2cbd7435244b of https://github.com/lrworth/elm-infinite-gallery (a fork) (zip prefix tricycle-elm-infinite-gallery-74d48da/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 4a0cd28f3ad63e98a626f05a54b55b23161ed1f2.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/tricycle/elm-infinite-gallery/zipball/1.0.2/
A convenience function that returns some default configuration options.
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
]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.