giterlizzi / dokuwiki-plugin-datatables

Add DataTables support to DokuWiki
GNU General Public License v2.0
10 stars 11 forks source link

How to use "spans vertically" #25

Open i7slegend opened 7 years ago

i7slegend commented 7 years ago

Hello. When I try use a ":::" (cell spans vertically) then datatable don't formatting the table. Is there a way to solve it?

dolandemort commented 5 years ago

I can confirm that this is still an issue. Using ":::" to perform a rowspan inside a table prevents it from being formatted by the plugin.

Edit: Upon further investigation, it seems this is in fact by design since Datatables does not support rowspan/colspan inside the table body. This makes sense if you think about how the sorting would work.

Edit2: If ever this functionality were to be implemented, perhaps a workaround could be to have an option in the \<datatables> declaration that allowed consecutive rows with the same content to be grouped using this datatables api functionality.

jens62 commented 10 months ago

"spans vertically" would be a nice enhancement. Regarding "This makes sense if you think about how the sorting would work.": The tablelayout plugin ( with {{tablelayout?tableSort=1}} ) replaces the content of the "empty" cells by the "spans value" internally.

I prefer the datatables plugin, but for the time being I need to stay with the tablelayout plugin because of the missing "spans vertically" functionality.