Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 76: | Line 76: | ||
const dct = cell.getData(); | const dct = cell.getData(); | ||
return '<a href="' + dct.url + '">' + dct.name + '</a>'; | return '<a href="' + dct.url + '">' + dct.name + '</a>'; | ||
} | |||
}, | |||
{ | |||
title: 'Data Sources', | |||
field: 'Data Sources', | |||
formatter: function (cell) { | |||
const dct = cell.getData(); | |||
return cell.getValue().map(src => '<span>' + src + '</span>'); | |||
} | } | ||
} | } |
Revision as of 13:49, 7 June 2022
Development verstion of the DCT List.
Not ready for production!