Files
opensem/resources/views/vendor/boilerplate/plugins/demo/bootbox.blade.php
Ludovic CANDELLIER b50f50ea62 [WIP] Refactor project
2021-05-21 00:21:05 +02:00

16 lines
1.2 KiB
PHP

@component('boilerplate::card', ['color' => 'pink', 'title' => 'Bootbox'])
<p><button class="btn btn-primary" onclick="bootbox.alert('Example')">bootbox.alert</button></p>
<pre class="prettyprint">bootbox.alert('Example')</pre>
<p><button class="btn btn-primary" onclick="bootbox.confirm('OK', function(result){ console.log('Result: ' + result); });">bootbox.confirm</button></p>
<pre class="prettyprint">bootbox.confirm("OK ?", function(result){ console.log('Result: ' + result); });</pre>
<p><button class="btn btn-primary" onclick="bootbox.prompt('Value', function(result){ console.log(result); });">bootbox.prompt</button></p>
<pre class="prettyprint">bootbox.prompt("Value", function(result){ console.log(result); });</pre>
<p><button class="btn btn-primary" onclick="bootbox.dialog({ message: '<h1>HTML message</h1><p>Hello there !</p>'})">bootbox.dialog</button></p>
<pre class="prettyprint">bootbox.dialog({ message: '&lt;h1>HTML message&lt;/h1>&lt;p>Hello there !&lt;/p>' });</pre>
@slot('footer')
<div class="small text-muted text-right">
<a href="http://bootboxjs.com/documentation.html" target="_blank">bootbox</a>
</div>
@endslot
@endcomponent