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 185: Line 185:
             if (!(filters[0] && filters[0].type)) { return; }
             if (!(filters[0] && filters[0].type)) { return; }


             const grayOutUncheckedDataSources = () => {
             const markDeselectedDataSources = () => {
                 const selectedSources = filters[0].type.dataSources;
                 const selectedSources = filters[0].type.dataSources;
                 document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => {
                 document.querySelectorAll('.data-source-cell .data-source-img').forEach(img => {
Line 191: Line 191:
                     else { img.classList.add('unselected'); }
                     else { img.classList.add('unselected'); }
                 });
                 });
                 tabulator.off('renderComplete', grayOutUncheckedDataSources);
                 tabulator.off('renderComplete', markDeselectedDataSources);
                 console.log(tabulator)
                 console.log(tabulator)
             }
             }
             tabulator.on('renderComplete', grayOutUncheckedDataSources);
             tabulator.on('renderComplete', markDeselectedDataSources);
         });
         });



Revision as of 10:12, 9 June 2022

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