qrz/static/js/datatable.js

47 lines
905 B
JavaScript
Raw Normal View History

$(document).ready(function () {
$('#main_table').DataTable({
"display": true,
"cell-border": true,
"processing": true,
"serverSide": true,
"language": {
"lengthMenu": "Show _MENU_ entries",
"info": "Showing page _PAGE_ of _PAGES_",
"search": "Search :",
"paginate": {
"first": "First",
"last": "Last",
"next": "Next",
"previous": "Previous"
},
},
"stateSave": true,
"ajax": {
"url": "/qrzws",
"type": "POST",
"contentType": "application/json",
"data": function (d) {
return JSON.stringify(d);
},
},
"columns": [{
"name": "qrz"
},
{
"name": "name"
},
{
"name": "city"
},
{
"name": "dept"
},
{
"name": "country"
},
{
"name": "dmrid"
},
]
});
});