Is it possible to generate a DOM string variable and apply it to the table at runtime?
Is it possible to generate a DOM string variable and apply it to the table at runtime?
ghendric
Posts: 13Questions: 5Answers: 0
in DataTables
Example:
var domStr ="<'row middleAlign'<'col-sm-6'B><'col-sm-6'f>>" + "<'row'<'col-sm-12'tr>>" + "'<'row middleAlign'<'col-sm-6'i><'col-sm-6'p>>";
$('#table').DataTable({
dom:domStr
});
Answers
Yes - that will work: http://live.datatables.net/heletege/1/edit
Allan