feature: set role previledge access
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user