Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 183: | Line 183: | ||
tabulator.on('dataFiltered', (filters, rows) => { | tabulator.on('dataFiltered', (filters, rows) => { | ||
console.log( | console.log(rows) | ||
if (!(filters[0] && filters[0].type)) { return; } | if (!(filters[0] && filters[0].type)) { return; } | ||
const selectedSources = filters[0].type.dataSources; | // const selectedSources = filters[0].type.dataSources; | ||
document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => { | // document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => { | ||
if (selectedSources.includes(img.dataset.value)) { img.classList.remove('unselected') } | // if (selectedSources.includes(img.dataset.value)) { img.classList.remove('unselected') } | ||
else { img.classList.add('unselected'); } | // else { img.classList.add('unselected'); } | ||
}); | }); | ||
}); | }); |
Revision as of 16:28, 8 June 2022
Development verstion of the DCT List.
Not ready for production!