jofftiquez / vue-croppie

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

croppieInitialized isn't working #73

Closed germankrause closed 4 years ago

germankrause commented 4 years ago

I don't see any entries for 'croppieInitialized', why did you write about this event in your README.md and how can I know when croppie became initialized?

matthewboman commented 4 years ago

If you look at https://github.com/jofftiquez/vue-croppie/blob/master/index.html it is

croppieInitialized() {
      // This method will be executed when the croppie is initialized
       // You can use it to set the image
       // this.$refs.croppieRef.bind({
       //   url: 'http://i.imgur.com/Fv2YOM6.jpg',
       // });
       console.log('Croppie was initialized');
     }`

Not sure why this was left out of the example.

jofftiquez commented 4 years ago

croppieInitialized is not an event. It's a prop. https://github.com/jofftiquez/vue-croppie/blob/2d671938ad04e3266e2acd8292c17457d8d0d498/src/VueCroppieComponent.js#L40