jofftiquez / vue-croppie

Vue wrapper for croppie
https://jofftiquez.github.io/vue-croppie/
MIT License
260 stars 42 forks source link

Hi, can you please give me an example for destroy croppie. thanks #43

Closed donnie24 closed 5 years ago

jofftiquez commented 5 years ago

Hi @donnie24 you can call the .destroy() functions like the way you are calling the .result() function.

E.g.

        crop() {
            let options = {
                format: 'jpeg', 
                circle: true
            }
            this.$refs.croppieRef.result(options, (output) => {
                this.cropped = output;
                this.$refs.croppieRef.destroy();
            });
        }
jofftiquez commented 5 years ago

Or inside .result() function.