Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 138: Line 138:
         });
         });


         table.on("tableBuilt", () => {  
         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);
            // console.log(chk)
         });
         });
    })


    window.addEventListener("load", function () {
         const chk = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked')).map(el => el.value);
         const checked1 = $('#data-source-filter input[type="checkbox"]:checked').map((idx, el) => el.value)
         console.log(chk)
         console.log('jqr', checked1)
     });
     }, { once: true, passive: true });
     </script>
     </script>



Revision as of 13:29, 8 June 2022

Development verstion of the DCT List.
Not ready for production!