EngageSoftware/elm-engage-common/5.0.1

NOTE: the latest version is 8.2.10

Engage.UI.PictureUpload

UI.PictureUpload

type alias Attribute msg =
InternalAttribute msg -> InternalAttribute msg

The Attribute type

type alias File =
{ lastModified : Maybe Posix
, name : String
, size : Int
, mimeType : String
, dataURL : String
}

The File type

= PictureUploadLoaded

The PortOutKey type

browse : String -> msg -> Attribute msg

Get the browse Attribute

dropZone : String -> Attribute msg

Get the drop zone Attribute

onFiles : (List File -> msg) -> Attribute msg

Get the onFiles Attribute

onLoad : (String -> msg) -> Attribute msg

Get the onLoad Attribute

picture : String -> Attribute msg

Get the picture Attribute

pictureUpload : Namespace -> String -> List (Attribute msg) -> Html msg

Get the picture upload view

remove : String -> msg -> Attribute msg

Get the remove Attribute