Sha256: ff39feed0000968d7e851487eb246e48e1dbbf7be51bb186303032b729fd0a4e
Contents?: true
Size: 1.34 KB
Versions: 5
Compression:
Stored size: 1.34 KB
Contents
<section id="bootbox"> <div class="page-header"> <h1>Bootbox <small>bootstrap bootbox helper</small> </h1> </div> <p>Bootbox helpers uses <a href="http://bootboxjs.com/" target="_blank">bootbox</a> to represent alert, confirm and prompt.</p> <p><a href="http://bootboxjs.com/" target="_blank">Bootbox</a> is a pure js plugin, so there is not any rails helpers about it. This gem just replaces the default alert with bootbox.alert. It also replaces default confirm with bootbox.confirm when using data-confirm of jquery_ujs</p> <h3>Alert and Confirm</h3> <div class="bs-docs-example"> <%= btn('Click Me', js: 'alert("show")', confirm: 'sure?') %> <%= btn('Click Me', js: 'alert("show")', confirm: 'sure?', type: 'button') %> <%= btn('Click Me', url: '#', confirm: 'I will jump to top of the page. sure?') %> <%= btn('Click Me', url: '#', confirm: 'I will jump to top of the page. sure?', type: 'button') %> </div> <pre class="prettyprint linenums lang-js"> <%= btn('Click Me', js: 'alert("show")', confirm: 'sure?') %> <%= btn('Click Me', js: 'alert("show")', confirm: 'sure?', type: 'button') %> <%= btn('Click Me', url: '#', confirm: 'I will jump to top of the page. sure?') %> <%= btn('Click Me', url: '#', confirm: 'I will jump to top of the page. sure?', type: 'button') %> </pre> </section>
Version data entries
5 entries across 5 versions & 1 rubygems