Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 493: | Line 493: | ||
filterState.businessModel = selectedBModels.length === bmOptions.length ? undefined : selectedBModels; | filterState.businessModel = selectedBModels.length === bmOptions.length ? undefined : selectedBModels; | ||
const dmUseOptions = Array.from(document.querySelectorAll('#dm-use-filter input[type="checkbox"]')); | filterState.usedByDmo = document.getElementById('used-by-practitioners').checked ? 'yes' : undefined; | ||
const selectedDmUseOptions = dmUseOptions.filter(checkbox => checkbox.checked).map(checkbox => checkbox.value); | // const dmUseOptions = Array.from(document.querySelectorAll('#dm-use-filter input[type="checkbox"]')); | ||
// const selectedDmUseOptions = dmUseOptions.filter(checkbox => checkbox.checked).map(checkbox => checkbox.value); | |||
filterState.usedByDmo = selectedDmUseOptions.length === dmUseOptions.length ? undefined : selectedDmUseOptions; | // filterState.usedByDmo = selectedDmUseOptions.length === dmUseOptions.length ? undefined : selectedDmUseOptions; | ||
table.setFilter(dctFilter, filterState); | table.setFilter(dctFilter, filterState); |
Revision as of 16:36, 7 December 2022
Current version of the DCT List.
Not ready for production!