EngageSoftware / elm-engage-common / Engage.UI.PictureUpload

UI.PictureUpload


type alias Attribute msg =
InternalAttribute msg -> InternalAttribute msg

The Attribute type


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

The File type


type PortOutKey
    = 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

hidePicture : Attribute msg

Get the hide picture Attribute

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

Get the picture upload view

remove : String -> msg -> Attribute msg

Get the remove Attribute