Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 416: Line 416:
         document.querySelectorAll(context + ' input[type="checkbox"]').forEach(checkbox => checkbox.checked = false);
         document.querySelectorAll(context + ' input[type="checkbox"]').forEach(checkbox => checkbox.checked = false);
         applyFilters();
         applyFilters();
    }
    function clearFilters() {
        document.querySelectorAll('#dct-filters input[type="checkbox').forEach(checkbox => checkbox.checked = checkbox.defaultChecked);
        tabulator.clearFilter();
     }
     }
     </script>
     </script>
Line 437: Line 442:
                 <span>Filters</span>
                 <span>Filters</span>
             </h2>
             </h2>
            <button id="clear-filters-button" type="button" onclick="clearFilters()">Clear Filters</button>
             <div class="filter-wrapper">
             <div class="filter-wrapper">
                 <h3>Functions</h3>
                 <h3>Functions</h3>

Revision as of 11:55, 20 June 2022

Development verstion of the DCT List.
Not ready for production!