Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 111: | Line 111: | ||
function updateFilter() { | function updateFilter() { | ||
if (!table) return; | |||
const selectedSources = Array.from( | |||
document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked') | |||
).map(checkbox => checkbox.value); | |||
table.setFilter(dctFilter, { dataSources: selectedSources }); | table.setFilter(dctFilter, { dataSources: selectedSources }); | ||
} | } | ||
Line 167: | Line 172: | ||
document.getElementById('data-source-filter').addEventListener('change', event => { | document.getElementById('data-source-filter').addEventListener('change', event => { | ||
updateFilter(); | updateFilter(); | ||
}, { passive: true }); | }, { passive: true }); |
Revision as of 15:11, 8 June 2022
Development verstion of the DCT List.
Not ready for production!