filamentgroup / tablesaw

A group of plugins for responsive tables.
MIT License
5.48k stars 434 forks source link

Wrong rendering in stack mode if content of table was generated with .js #346

Closed rentasad closed 5 years ago

rentasad commented 6 years ago

Hello,

In my programm I generating an stack html table with js in a simple js snipping like that: `for (var i=0; i < articleDataArray.length; i++) { var articleObject = articleDataArray[i]; var gang = articleObject[GANG]; var ebene = articleObject[EBENE]; var fach = articleObject[FACH]; var lagerplatzString = gang + "-" + ebene + "-" + fach; var row = document.createElement("tr");

        var articleCol = document.createElement("td");
        articleCol.setAttribute("class","title");
        articleCol.innerHTML = articleObject[NUMMER] + " " + articleObject[LANAME1];

        var storageSpaceCol = document.createElement("td");
        storageSpaceCol.innerHTML = lagerplatzString;

        var bestand = document.createElement("td");
        bestand.innerHTML = articleObject[GES_BEST];

        var lieferant = document.createElement("td");
        lieferant.innerHTML = articleObject[LIEFERANT_NAME];

        var hersteller = document.createElement("td");
        hersteller.innerHTML = articleObject[LANAME3];

        row.appendChild(articleCol);
        row.appendChild(storageSpaceCol);
        row.appendChild(bestand);
        row.appendChild(lieferant);
        row.appendChild(hersteller);

        tableBody.appendChild(row);
    }`

This will generate the table content like this:

grafik

if I copy the table content static in my index.html he will render it successfully: grafik

In the generated Table he dont write the header columns in the stack version: grafik

Is there any way to restart rendering or fix this problem?

Thanks and best regards

Matthias

zachleat commented 5 years ago

I’m guessing this might be related to #342, which will be included in the next version 3.1.0. Can you retest after that has been released?

zachleat commented 5 years ago

v3.1.0 is released, please retest!

This is an automated message to let you know that a helpful response was posted to your issue and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.

If the response works to solve your problem—great! But if you’re still having problems, do not let the issue’s closing deter you if you have additional questions! Post another comment and I will reopen the issue. Thanks!