viewy 2.0.6

A web UI toolkit that combine the advantages of a design system and an ui library.
1
2
3
4
5
6
7
8
9
10
11
12
window.addEventListener("startViewy", ({detail}) => {
    const selectAllCheckbox = detail.root.querySelectorAll("table .select-all input[type='checkbox']");
    selectAllCheckbox.forEach(checkbox => {
        const bodyCheckboxes =  checkbox.closest("form").querySelectorAll("tbody input[type='checkbox']")
        checkbox.addEventListener("change", e => {
            bodyCheckboxes.forEach(bodyCheckbox => {
                bodyCheckbox.checked = checkbox.checked;
            });
        });

    });
});