23 lines
598 B
PHP
23 lines
598 B
PHP
<button type="button" class="btn bg-gradient-secondary btn-colvis" style="border-left: 1px solid rgba(0,0,0,0.1);">
|
|
<i class="fa fa-columns"></i>
|
|
</button>
|
|
|
|
@push('js')
|
|
<script>
|
|
var $colvis = $('#{{ $model }}-table-header .btn-colvis');
|
|
|
|
$colvis.on( 'click', function () {
|
|
var table = window.LaravelDataTables["{{ $model }}-table"];
|
|
// table.search($search.val()).draw();
|
|
buttons = table.buttons();
|
|
console.log(table.button('colvis'));
|
|
console.log(buttons);
|
|
/*
|
|
for (var i = buttons.length - 1; i >= 0; i--) {
|
|
console.log(buttons[i]);
|
|
}
|
|
*/
|
|
});
|
|
</script>
|
|
@endpush
|