forked from sebastienheyd/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootbox.blade.php
executable file
·23 lines (18 loc) · 1.35 KB
/
bootbox.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@component('boilerplate::card', ['color' => 'pink', 'title' => 'Bootbox'])
@slot('tools')
<button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fa fa-minus"></i></button>
@endslot
<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: '<h1>HTML message</h1><p>Hello there !</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