mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-01 04:13:28 +01:00
7 lines
304 B
JavaScript
7 lines
304 B
JavaScript
const selectionMode = document.querySelector('#selection-mode');
|
|
const tree = document.querySelector('.tree-selectable');
|
|
|
|
selectionMode.addEventListener('sl-change', () => {
|
|
tree.querySelectorAll('sl-tree-item').forEach(item => (item.selected = false));
|
|
tree.selection = selectionMode.value;
|
|
}); |