jquery - Footable: attribute data-class doesn't work without data-hide -
I have a problem with the footage plugin and need a quick solution. I have already opened a buget in the plugin's gitub, but maybe I get quick answers.
We have a lot of product cables, which are working with a footnote plugin but without any data set by the editor - hidden-attribute because there are only two columns in it and no hidden Should not be done and then data-level work does not work, and all other sections (footage-visual etc.) are not set in TB. I generated JSFiddle:
The result in the first table is expected (the class "head" is set to all the cells in a column), the table does not have two.
The code that is not working:
& lt; Table class = "default" & gt; & Lt; Thead & gt; & Lt; Tr class = "footable-group-row" & gt; & Lt; Th class = "head" data-square = "head" & gt; Spatel 1, Data-Class Chief & lt; / Th & gt; & Lt; Th class = "head" & gt; Splate 2 & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td> Wert 1 & lt; / Td> & Lt; Td> Wert 2 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Wert 1 & lt; / Td> & Lt; Td> Wert 2 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Wert 1 & lt; / Td> & Lt; Td> Wert 2 & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt;
The result should be in the following (usually done by the plugin):
& lt; Table class = "default" & gt; & Lt; Thead & gt; & Lt; Tr class = "footable-group-row" & gt; & Lt; Th class = "head" data-square = "head" & gt; Spatel 1, Data-Class Chief & lt; / Th & gt; & Lt; Th class = "head" & gt; Splate 2 & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; Tr class = "head" & gt; & Lt; Td> Wert 1 & lt; / Td> & Lt; Td> Wert 2 & lt; / Td> & Lt; / TR & gt; & Lt; Tr class = "head" & gt; & Lt; Td> Wert 1 & lt; / Td> & Lt; Td> Wert 2 & lt; / Td> & Lt; / TR & gt; & Lt; Tr class = "head" & gt; & Lt; Td> Wert 1 & lt; / Td> & Lt; Td> Wert 2 & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt;
If I add data-hide in one of these, then working as expected, I think data-class should work without hiding data. Do you know how can I fix it?
Jeff, yes, you're right, the data-hide renders it correctly, but it requires should not be.
I also opened a bug ticket and the developer was very quick with a fix: so if you encounter this problem then the plugin
Comments
Post a Comment