hallelujahdrive / elm-croppie / Croppie.Events
type alias Model =
    { cropData : CropData
    , result : String
    }

type Msg
    = GotCropData CropData
    | GotResult String

view =
    Croppie.croppie
        []
        [ id "events-example"
        , onUpdate GotCropData
        , onGet GotCropData
        , onResult GotResult
        ]

update msg model =
    case msg of
        GotCropData cropData ->
            ( { model | cropData = cropData }
            , Cmd.none
            )
        GorResult url ->
            ( { model | result = url }
            , Cmd.none
            )

Events

onUpdate : (Croppie.CropData -> msg) -> Html.Attribute msg

Detect update evnents. Update events trigged when a drag or zoom occurs

Receive function callbacks

onGet : (Croppie.CropData -> msg) -> Html.Attribute msg

Receive get callbacks

onResult : (Croppie.Result msg -> msg) -> Html.Attribute msg

Receive result callbacks