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 151: Line 151:
             const selectedSources = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked')).map(el => el.value);
             const selectedSources = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked')).map(el => el.value);
             table.setFilter(dctFilter, { dataSources: selectedSources });
             table.setFilter(dctFilter, { dataSources: selectedSources });
            // console.log('Filter 1', table.getFilters())
         }, { passive: true });
         }, { passive: true });


     });
     });
    function selectAll() {
        console.log('select all')
    }
    function deselectAll() {
        console.log('deselect all')
    }
     </script>
     </script>


Line 162: Line 168:
         <div id="data-source-filter-wrapper">
         <div id="data-source-filter-wrapper">
             <h3>Data Sources</h3>
             <h3>Data Sources</h3>
            <a href="#" onclick="selectAll()">Select all</a>
            <a href="#" onclick="deselectAll()">Deselect all</a>
             <div id="data-source-filter"></div>
             <div id="data-source-filter"></div>
         </div>
         </div>

Revision as of 14:08, 8 June 2022

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