djorg83 / react-bootstrap-sweetalert

A React implementation of SweetAlert
https://djorg83.github.io/react-bootstrap-sweetalert/
MIT License
252 stars 55 forks source link

Button actions Improvements #51

Closed wouter140 closed 5 years ago

wouter140 commented 5 years ago

Added focusCancelBtn property that focuses on the cancel button by default. Added reverseButtons property that reverses the cancel and confirm button order. Added customActions property that overrides the buttons in the alert message. In here it would be possible to create more buttons or add some custom behaviour.

I also updated the readme documentation with these changes and added and updated a example with these features.

Closes #42 Closes #34