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 312: Line 312:
         const sourceOptions = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]'));
         const sourceOptions = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]'));
         const selectedSources = sourceOptions.filter(checkbox => checkbox.checked).map(checkbox => checkbox.value);
         const selectedSources = sourceOptions.filter(checkbox => checkbox.checked).map(checkbox => checkbox.value);
        console.log('ALL', sourceOptions)
        console.log('selected', selectedSources)


         // If all checkboxes are checked, disable the filter.
         // If all checkboxes are checked, disable the filter.

Revision as of 16:03, 22 August 2022

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