Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 301: | Line 301: | ||
const src = dataSources.find(src => src.name === curr); | const src = dataSources.find(src => src.name === curr); | ||
const url = src ? src.image : ''; | const url = src ? src.image : ''; | ||
return url ? prev + '<img class="data-source-img" data-value="' + curr + '" src="' + url + '">' : prev + ' ' + curr; | return url | ||
? prev + '<img class="data-source-img" data-value="' + curr + '" src="' + url + '" alt="' + curr +'" title="' + curr + '">' | |||
: prev + ' ' + curr; | |||
}, ''); | }, ''); | ||
return output; | return output; |
Revision as of 15:26, 13 June 2022
Development verstion of the DCT List.
Not ready for production!