How to tell DataTables include footer in generated table?
How to tell DataTables include footer in generated table?
tiendq
Posts: 9Questions: 0Answers: 0
Hi,
I created a DataTable instance in its simple form with following code, it works well except there is no footer. I have seen an option to include footer anywhere. How to?
Thanks,
var table = $("#test").DataTable();
This discussion has been closed.
Replies
Just use the
tfoot
..But I use zero configuration with just an empty table tag, columns are configured in initiate code.
For example:
<table id="test"></table>
http://live.datatables.net/newukizu/1/edit?html,js,output
Found it here
4th one down
This is correct - there is no option to tell DataTables to create a footer for the table at the moment when there doesn't already exist a footer in the DOM.
Allan
I have added a footer manually with inputs for column search but it'd be better if there is a built-in feature.
Thanks for your answers.
This would be a great idea for a feature enhancemwnt tho :-)
Maybe ill make a quick plugin for it