Enhance interface

This commit is contained in:
Ludovic CANDELLIER
2020-07-16 15:48:31 +02:00
parent cc6edb2480
commit fcd26d13de
18 changed files with 208 additions and 46 deletions

View File

@@ -1,2 +1,14 @@
@include('components.select', ['name' => 'pager', 'list' => ['5', '10','25', '50', '100']])
@include('components.select', ['name' => 'pager', 'id_name'=> $model . '_pager', 'list' => [5 => '5', 10 => '10', 25 => '25', 50 => '50', 100 => '100']])
  
@push('js')
<script>
$('#{{ $model }}_pager').change(function() {
var table = window.LaravelDataTables["{{ $model }}-table"];
var len = $(this).val();
table.page.len(len).draw();
});
</script>
@endpush