Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 252: | Line 252: | ||
let dataSourceFilterHtml = ''; | let dataSourceFilterHtml = ''; | ||
groupedSources.forEach(group => { | groupedSources.forEach(group => { | ||
dataSourceFilterHtml += group.reduce(( | dataSourceFilterHtml += group.reduce((acc, curr, idx) => { | ||
const identifier = escapeAttr(curr.name); | const identifier = escapeAttr(curr.name); | ||
return | return acc + | ||
'<div ' + (idx === 0 ? ' class="filter-group-start"><div class="group-title">Group title</div>' : '>') + | |||
'<input type="checkbox" id="filter-' + identifier + '" value="' + curr.name + '" checked>' + | '<input type="checkbox" id="filter-' + identifier + '" value="' + curr.name + '" checked>' + | ||
'<label for="filter-' + identifier + '"><img src="' + curr.image + '"> ' + curr.name + '</label></div>' | '<label for="filter-' + identifier + '"><img src="' + curr.image + '"> ' + curr.name + '</label></div>' |
Revision as of 11:03, 15 June 2022
Development verstion of the DCT List.
Not ready for production!