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

Feature/add dialog class #91

Closed tagliala closed 3 years ago

tagliala commented 3 years ago

⚠️ Requires #90 to be merged to master. Then rebase this branch

Add dialogClass option

Add the ability to specify a custom class for the modal-dialog element, allowing users to change the width of the modal

Ref: https://getbootstrap.com/docs/5.0/components/modal/#optional-sizes

Supersedes #75, #88

tagliala commented 3 years ago

Tested on BS3/Rails4.2/jQuery 1 and BS4/Rails6.1/jQuery 3