Feature #2 : Role With Permission Selection

This commit is contained in:
Daeng Deni Mardaeni
2024-08-10 21:08:03 +07:00
parent 25db8db2f8
commit 18f0f68f1a
8 changed files with 146 additions and 52 deletions

View File

@@ -0,0 +1,13 @@
const selectAll = document.querySelector('#select_all');
if (selectAll) {
const allCheckboxes = document.querySelectorAll('[type="checkbox"]');
// Handle check state
selectAll.addEventListener('change', e => {
// Apply check state to all checkboxes
allCheckboxes.forEach(c => {
c.checked = e.target.checked;
});
});
}