<table class="responsive-table">
            <th>Lorem Ipsum</th>
            <td>eget etiam</td>
            <td>pede nullam nascetur habitasse</td>
            <td>accumsan non</td>
            <td>sit viverra aenean bibendum</td>
            <td>maecenas pretium</td>
            <td>nascetur risus aliquet ipsum</td>
            <td>consectetur mi</td>
            <td>metus est dictum mollis elementum torquent. Ad ligula quis convallis per natoque</td>
            <td>porta non</td>
            <td>aenean lorem pulvinar eros</td>

Responsive Table

A custom component created for Nijmegen, based on this CSS-Tricks demo.


To start using this component and facilitate a correct layout on mobile devices, some JavaScript is needed to initialize it.
Underneath a jQuery example on how to achieve this and should be placed in the Additional component(s) script section as documented in How to use.

    $('.responsive-table').each(function() {
        var headings = $(this).find('thead th').map(function() {
            return this.textContent;

        if (headings.length > 0) {
            $(this).find('tbody td').each(function(tdIdx) {
                this.setAttribute('data-title', headings[tdIdx % headings.length]);