agdar/static/js/demo/table-manage-scroller.demo.js
2025-11-02 14:35:35 +03:00

35 lines
740 B
JavaScript
Executable File

/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 5
Version: 5.5.1
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin/
*/
var handleDataTableScroller = function() {
"use strict";
if ($('#data-table-scroller').length !== 0) {
$('#data-table-scroller').DataTable({
ajax: "../assets/js/demo/json/scroller_demo.json",
deferRender: true,
scrollY: 300,
scrollCollapse: true,
scroller: true,
responsive: true
});
}
};
var TableManageScroller = function () {
"use strict";
return {
//main function
init: function () {
handleDataTableScroller();
}
};
}();
$(document).ready(function() {
TableManageScroller.init();
});