Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 63: | Line 63: | ||
Promise.all([getSources(), getDcts()]).then(data => { | Promise.all([getSources(), getDcts()]).then(data => { | ||
const | const dataSources = data[0]; | ||
const dcts = data[1]; | const dcts = data[1]; | ||
Line 84: | Line 84: | ||
const sources = cell.getValue(); | const sources = cell.getValue(); | ||
let out = sources.reduce((prev, curr) => { | let out = sources.reduce((prev, curr) => { | ||
return prev + '<img src="' + | return prev + '<img src="' + dataSources.find(src => src.name === curr).image + '">' | ||
}, ''); | }, ''); | ||
return out; | return out; |
Revision as of 14:08, 7 June 2022
Development verstion of the DCT List.
Not ready for production!