babsballetschool / image-directory / ImageDirectory

Elm project showing an image directory structure.


type Entry

Represents the directory structure for an image directory.

encode : Entry -> Json.Encode.Value

Encodes an Entry into a Json.Encode.Value

decoder : Json.Decode.Decoder Entry

Decodes an Json representation of an Entry

view : (String -> msg) -> Entry -> Html msg

Accepts a onFileClick function and returns a view for an Entry