ifad / data-confirm-modal

Makes Rails' link_to confirm: 'foo' build a Bootstrap Modal instead of calling the browser's confirm() API.
MIT License
271 stars 115 forks source link

Button size #41

Closed promentus closed 8 years ago

promentus commented 8 years ago

Is it possible to add btn-sm to the buttons? And change the red color for example?

vjt commented 8 years ago

Hi! Yes, you can either set data-commit-class and data-cancel-class in the HTML, or you can pass commitClass and cancelClass when configuring the modal via JS.

promentus commented 8 years ago

Perfect