Add bootstrap-table.js library to support dynamic table functionality in the project

This commit is contained in:
2025-08-05 16:02:57 +02:00
parent 44dc7a22c0
commit 676089950d
3 changed files with 9015 additions and 26 deletions

15
js/tableResize.js Normal file
View File

@@ -0,0 +1,15 @@
let table = $('#t1');
$(function () {
let options = table.bootstrapTable('getOptions');
options.height = document.getElementById('content').clientHeight - 170;
table.bootstrapTable('refreshOptions', options);
});
function tableresize() {
let options = table.bootstrapTable('getOptions');
options.height = document.getElementById('content').clientHeight - 170;
table.bootstrapTable('refreshOptions', options);
}
window.addEventListener("resize", tableresize);