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 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 13:55, 7 June 2022

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