Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 238: | Line 238: | ||
field: 'name', | field: 'name', | ||
formatter: function (cell) { | formatter: function (cell) { | ||
/** @type {DCT} */ | |||
const dct = cell.getData(); | |||
return '<a href="' + dct.url + '">' + dct.name + '</a>'; | |||
} | } | ||
}, | }, | ||
Line 245: | Line 247: | ||
field: 'functions', | field: 'functions', | ||
formatter: function (cell) { | formatter: function (cell) { | ||
return cell.getValue().map(func => '<img src="' + fnImages[func] + '">'); | |||
} | } | ||
}, | }, |
Revision as of 14:06, 13 June 2022
Development verstion of the DCT List.
Not ready for production!