feature: set role previledge access

This commit is contained in:
2025-03-07 14:39:46 +07:00
parent dceb46ab86
commit fbfa2a37bb
39 changed files with 739 additions and 223 deletions

View File

@@ -12,6 +12,11 @@ class GeneralTable {
}
init() {
const tableContainer = document.getElementById(this.tableId);
// Kosongkan container sebelum render ulang
tableContainer.innerHTML = "";
const table = new Grid({
columns: this.columns,
search: this.options.search || {
@@ -39,8 +44,8 @@ class GeneralTable {
total: (data) => data.meta.total,
},
});
table.render(document.getElementById(this.tableId));
table.render(tableContainer);
this.handleActions();
}