tomchentw / react-toastr

React.js toastr component
https://tomchentw.github.io/react-toastr/
MIT License
619 stars 112 forks source link

onClose callback #54

Closed ryanVincent closed 8 years ago

ryanVincent commented 8 years ago

There should be a callback made available on close that is triggered when the close button is pressed so that you can perform some action in response to the toast being closed.

RangarajKaushikSundar commented 8 years ago

@ryanVincent Hi Ryan, I believe there is an option to pass a function through props that will be invoked during toaster close. If you are unable to use the functionality, I would strongly recommend that you fork the code and make the necessary changes. @tomchentw has done a great job with the code documentation/commenting, the code is clean and easily readable. Hope this helps.

itwasmattgregg commented 7 years ago

@RangarajKaushikSundar can you point to this prop? I don't see it anywhere in the code other than handleRemove() in the ToastrMessage.