Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 83: Line 83:
 
                     formatter: function (cell) {
 
                     formatter: function (cell) {
 
                         const sources = cell.getValue();
 
                         const sources = cell.getValue();
                         return sources ? sources.map(src => '<span>' + src + '</span>') : '';
+
                         let out = sources.reduce((prev, curr) => {
 +
                            return '<span>' + curr + '</span>'
 +
                        }, '');
 +
                        return out;
 
                     }
 
                     }
 
                 }
 
                 }

Revision as of 14:55, 7 June 2022

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