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

How to override the default close icon? #42

Closed chamnap closed 8 years ago

chamnap commented 8 years ago

I would like to override the default close icon to use google material icon <i class='material-icons'>clear</i>. Is there any callbacks before the modal is shown so that I could inject the above html code. Or do you have any suggestions to do so?

Appreciate your response!

lucaspiller commented 8 years ago

Hi @chamnap. Unfortunately there isn't a way to override it. We are using the standard Bootstrap close icon. You might be able to use CSS to change it with some content and after trickery. Otherwise feel free to send a PR to allow it be changed!

milianriedel commented 6 years ago

@chamnap Merged in https://github.com/ifad/data-confirm-modal/pull/69