I'm using jQuery DataTables and trying to create a table with a first column that has headers as rows and a second column with the data, something like this:
-----------------
name | tom
-----------------
surname | smith
-----------------
age | 18
-----------------
The data is retrieved with sAjaxSource
from a JSON Array. How can I tell to jQuery DataTables that the data is vertical disposed?
And is it possible to dynamically change the alignment of the headers from vertical to horizontal? There are tables that have headers horizontally disposed and some that have vertical disposed like in the example.