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 612: Line 612:
                         formatter: function (cell) {
                         formatter: function (cell) {
                             return Array.from(cell.getValue().keys())
                             return Array.from(cell.getValue().keys())
                                 .map(fn => `<img class="func-img" src="${fnImages[fn]}" data-value="${fn}" alt="${fn}" title="${fn}">`)
                                 .map(fn => `<img class="func-img"  
                                    src="${fnImages[fn]}"  
                                    data-value="${fn}"  
                                    alt="${fn}"  
                                    title="${fn}\n${functionsData.get(fn)[DESC_KEY]}">`
                                    )
                                 .join('');
                                 .join('');
                         }
                         }
Line 787: Line 792:
                 applyFilters();
                 applyFilters();
             }, { passive: true });
             }, { passive: true });
            // document.getElementById('dm-use-filter').addEventListener('change', event => {
            //    // hack to check "Yes" as well when "Yes with Use Case" is selected
            //    if (event.target.id == "dm-use-filter-Yes-with-Use-Case" && event.target.checked) {
            //        document.getElementById('dm-use-filter-Yes').checked = true
            //    }
            //    applyFilters();
            // }, { passive: true });
             document.getElementById('bool-filters').addEventListener('change', event => {
             document.getElementById('bool-filters').addEventListener('change', event => {
                 applyFilters();
                 applyFilters();
Line 897: Line 894:
                 heterogeneous use of technologies in disasters and the overwhelming number of technologies on the market. It
                 heterogeneous use of technologies in disasters and the overwhelming number of technologies on the market. It
                 gathers and structures information about existing technologies to provide an up-to-date overview and thus
                 gathers and structures information about existing technologies to provide an up-to-date overview and thus
                 support the selection of suitable technologies.</p>
                 support the selection of suitable technologies.
            </p>
             <p>
             <p>
                 You can use the filters to identify relevant technologies according to your needs and then click on the name of
                 You can use the filters to identify relevant technologies according to your needs and then click on the name of

Revision as of 10:55, 8 December 2022

Current version of the DCT List.
Not ready for production!