| Current Path : /home/users/unlimited/www/foodbank.codeskitter.site/public/js/expense/ |
| Current File : /home/users/unlimited/www/foodbank.codeskitter.site/public/js/expense/index.js |
/**
*
* You can write your JS code here, DO NOT touch the default style file
* because it will make it harder for you to update.
*
*/
"use strict";
$(function() {
"use strict";
var table = $('#maintable').DataTable({
processing: true,
serverSide: true,
ajax: $('#maintable').attr('data-url'),
columns: [
{ data: 'id', name: 'id' },
{ data: 'title', name: 'title' },
{ data: 'amount', name: 'amount' },
{ data: 'date', name: 'date' },
{ data: 'action', name: 'action' },
],
"ordering": false
});
let hidecolumn = $('#maintable').data('hidecolumn');
if(!hidecolumn) {
table.column( 3 ).visible( false );
}
});
$('#maintable').on('draw.dt', function () {
$('[data-toggle="tooltip"]').tooltip();
})