datables boostrap missing classes ?
datables boostrap missing classes ?
Hello,
I'm trying to setup a grid using boostrap and dataTables.
To get the same render as the sample : https://www.datatables.net/manual/styling/bootstrap-simple.html
I'm must use the following code:
$('#ttest').dataTable().addClass("table").addClass("table-striped").addClass("table-bordered");
that is some classes are missing with only $('#ttest').dataTable().
I build my package from dataTables download choosing Datables and Bootstrap 3.
Any suggestion welcome
thierry
This question has an accepted answers - jump to answer
Answers
I don't understand what you mean by some classes are missing? Can you link to a test case showing the issue please?
Thanks,
Allan
results in:
when expected is (according to cited sample):
There is a comment in the 'view source' for that page:
More generally, if you want those classes, just have them in the
table
. They don't need to be added by Javascript and I don't really see any benefit in doing so.Allan