Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 247: Line 247:
             html2 += group.reduce((prev, curr, idx) => {
             html2 += group.reduce((prev, curr, idx) => {
                 const identifier = escapeAttr(curr.name);
                 const identifier = escapeAttr(curr.name);
                 return prev + '<div ' + (idx === 0 ? ' style="grid-column-start: 1">' : '>') +
                 return prev + '<div ' + (idx === 0 ? ' style="grid-column-start: 1; margin-bottom: .5em;">' : '>') +
                 '<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 14:46, 13 June 2022

Development verstion of the DCT List.
Not ready for production!