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 144: Line 144:
             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 chk = Array.from(document.querySelectorAll('#data-source-filter input[type="checkbox"]:checked')).map(el => el.value);
             console.log(chk)
             // console.log(chk)
         });
         });
     })
     })


     $(document).ready(function () {
     document.addEventListener("DOMContentLoaded", function () {
                const checked1 = $('#data-source-filter input[type="checkbox"]:checked').map((idx, el) => el.value)
        const checked1 = $('#data-source-filter input[type="checkbox"]:checked').map((idx, el) => el.value)
                console.log(checked1)
        console.log('jqr', checked1)
            //your code here
    }, { once: true, passive: true });
            });
     </script>
     </script>



Revision as of 13:20, 8 June 2022

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