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:
         });
         });


        // TODO: Remove properties that are not relevant for the filter, e.g. 'Supported content types'.
         const allFunctions = Array.from(functionsData.values(), entry => entry[FUNC_KEY]).flat();
         const allFunctions = Array.from(functionsData.values(), entry => entry[FUNC_KEY]).flat();


Line 281: Line 282:


         // Set up filters.
         // Set up filters.
         const functionFilterHtml = Object.getOwnPropertyNames(fnImages).reduce((acc, funcName) => {
         const functionFilterHtml = Object.keys(fnImages).reduce((acc, funcName) => {
             const identifier = escapeAttr(funcName);
             const identifier = escapeAttr(funcName);
             return acc + '<div><input type="checkbox" id="func-filter-' + identifier + '" value="' + funcName + '" checked>' +
             return acc + '<div><input type="checkbox" id="func-filter-' + identifier + '" value="' + funcName + '" checked>' +

Revision as of 15:42, 30 August 2022

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