Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 138: | Line 138: | ||
}); | }); | ||
table.on( | table.on('tableBuilt', () => { | ||
table.setData(dcts); | table.setData(dcts); | ||
table.setFilter(dctFilter, { foo:3 }); | // table.setFilter(dctFilter, { foo:3 }); | ||
console.log('Filter 1', table.getFilters()) | // console.log('Filter 1', table.getFilters()) | ||
table.setFilter(dctFilter, { foo:666 }); | // table.setFilter(dctFilter, { foo:666 }); | ||
console.log('Filter 2', table.getFilters() | // console.log('Filter 2', table.getFilters()) | ||
}); | }); | ||
const chk = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked')).map(el => el.value); | |||
const | console.log(chk) | ||
console.log( | }); | ||
</script> | </script> | ||
Revision as of 13:29, 8 June 2022
Development verstion of the DCT List.
Not ready for production!