fix roles
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@include('boilerplate::load.datatables')
|
||||
|
||||
@push('js')
|
||||
@component('boilerplate::minify')
|
||||
<script>
|
||||
$(function() {
|
||||
$('#dt').dataTable({
|
||||
@@ -12,18 +13,12 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endcomponent
|
||||
@endpush
|
||||
|
||||
@component('boilerplate::card', ['color' => 'orange', 'title' => 'Datatables'])
|
||||
Usage :
|
||||
<pre class="mb-3">
|
||||
@include('boilerplate::load.datatables')
|
||||
@push('js')
|
||||
<script>
|
||||
$('#dt').dataTable();
|
||||
</script>
|
||||
@endpush</pre>
|
||||
|
||||
Usage :
|
||||
<pre class="mb-3"><x-boilerplate::datatable name="users" /></pre>
|
||||
<table class="table table-sm table-striped table-hover" id="dt">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -58,6 +53,7 @@
|
||||
|
||||
@slot('footer')
|
||||
<div class="small text-muted text-right">
|
||||
<a href="https://sebastienheyd.github.io/boilerplate/components/datatable" target="_blank">component</a> /
|
||||
<a href="https://sebastienheyd.github.io/boilerplate/plugins/datatables" target="_blank">plugin</a> /
|
||||
<a href="https://datatables.net/manual/index">datatables</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user