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 46: Line 46:
             align-items: end;
             align-items: end;
         }
         }
         .filter-group-header { grid-column: 1/-1; }
         .filter-group-start { grid-column-start: 1; }
         .filter-content img { width: 2em; height: 2em; margin: 0 .5em; }
         .filter-content img { width: 2em; height: 2em; margin: 0 .5em; }
         #dct-tabulator.tabulator { border: 0 none; background-color: transparent; font-size: 1.2em; }
         #dct-tabulator.tabulator { border: 0 none; background-color: transparent; font-size: 1.2em; }
Line 258: Line 258:
                     groupHeaderHtml = '<div class="filter-group-header">' +
                     groupHeaderHtml = '<div class="filter-group-header">' +
                         'Group Title' +
                         'Group Title' +
                         '</div>'
                         '</div>';
                 }
                 }
                 return acc +  
                 return acc +  
                 '<div>' + groupHeaderHtml +
                 '<div ' + (idx === 0 ? ' class="filter-group-start">' : '>') + groupHeaderHtml +
                 '<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:12, 15 June 2022

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