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?

ghendricghendric Posts: 13Questions: 5Answers: 0

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

Sign In or Register to comment.