Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 82: Line 82:
 
                     field: 'Data Sources',
 
                     field: 'Data Sources',
 
                     formatter: function (cell) {
 
                     formatter: function (cell) {
                         const dct = cell.getData();
+
                         const sources = cell.getValue();
                         return cell.getValue().map(src => '<span>' + src + '</span>');
+
                         return sources ? sources.map(src => '<span>' + src + '</span>') : '';
 
                     }
 
                     }
 
                 }
 
                 }

Revision as of 14:50, 7 June 2022

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