Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Cschwentker (talk | contribs)
No edit summary
Cschwentker (talk | contribs)
No edit summary
Line 1: Line 1:
<noinclude>Development verstion of the DCT List.<br><span style="color: red; font-weight: bold;">Not ready for production!</span></noinclude>
<noinclude>Development verstion of the DCT List.<br><span style="color: red; font-weight: bold;">Not ready for
        production!</span></noinclude>
<includeonly>
<includeonly>
     <link href="/resources/assets/tabulator.min.css" rel="stylesheet">
     <link href="/resources/assets/tabulator.min.css" rel="stylesheet">
Line 489: Line 490:


             const dmUseOptions = Array.from(document.querySelectorAll('#dm-use-filter input[type="checkbox"]'));
             const dmUseOptions = Array.from(document.querySelectorAll('#dm-use-filter input[type="checkbox"]'));
            const yesWithUseCase = document.querySelector('#dm-use-filter-Yes');
            if (dmUseOptions.includes(yesWithUseCase)) {
                console.log("with use cas seleced")
            }
            console.log("dmuseOptions", dmUseOptions);
             const selectedDmUseOptions = dmUseOptions.filter(checkbox => checkbox.checked).map(checkbox => checkbox.value);
             const selectedDmUseOptions = dmUseOptions.filter(checkbox => checkbox.checked).map(checkbox => checkbox.value);


Line 794: Line 788:
             }, { passive: true });
             }, { passive: true });
             document.getElementById('dm-use-filter').addEventListener('change', event => {
             document.getElementById('dm-use-filter').addEventListener('change', event => {
                  
                 console.log("change dm use filter", event)
              console.log("change dm use filter", event)
 
                if (event.currentTarget.id === "dm-use-filter-Yes-with-Use-Case" && event.currentTarget.checked) {
                    document.getElementById('dm-use-filter-Yes').checked = true
                    console.log("check")
                }


                 applyFilters();
                 applyFilters();

Revision as of 15:38, 6 December 2022

Development verstion of the DCT List.
Not ready for

       production!