UniversalDataTool / react-image-annotate

Create image annotations. Classify, tag images with polygons, bounding boxes or points.
MIT License
406 stars 178 forks source link

Event when user clicks 'next' or 'prev' #131

Open Fischbrot opened 3 years ago

Fischbrot commented 3 years ago

Is it possible to detect when a user click next or prev?

I want to add a progressbar on my project, but i need to know when a user clicks next or prev.

Else i'd have to only put a single image in each instance and then reload the states with a custom next/prev button.

Cerealplacebo5 commented 2 years ago

In the 1.7.10 version, there are two props (onNextImage and onPrevImage), for functions that will be triggered by the next and prev button.