Row Header support?
Row Header support?
Hey all,
Is there any kind of row header support (as opposed to column headers) in DataTables? I need to be able to specify elements on a row instead of a column and have DataTables render it correctly in an ajax call through the aaData variable. Either have the th predefined in the table or somehow mark that part of the row as being rendered as a th element and having DataTables render it correctly.
I haven't done a trial implementation of this table yet but i didn't see any obvious options in the docs.
Thanks,
Norbert Skalski
Is there any kind of row header support (as opposed to column headers) in DataTables? I need to be able to specify elements on a row instead of a column and have DataTables render it correctly in an ajax call through the aaData variable. Either have the th predefined in the table or somehow mark that part of the row as being rendered as a th element and having DataTables render it correctly.
I haven't done a trial implementation of this table yet but i didn't see any obvious options in the docs.
Thanks,
Norbert Skalski
This discussion has been closed.
Replies
Currently DataTables only supported TD elements in the TBODY rows - it doesn't look at TH elements there. Support for that is something I think I will look at adding in future versions of DataTables. Until that time, you can effectively "simulate" the TH elements by adding a class to a TD and styling it as needed. The only loss is the semantic markup.
Allan