FooterCallback 'tfoot' parameter documentation slightly inconsistent/misleading.
FooterCallback 'tfoot' parameter documentation slightly inconsistent/misleading.
Hi,
The documentation of the footerCallback option seems slightly off.
Datatables version ( DataTables 1.13.8, Buttons 2.4.2, Column visibility 2.4.2, HTML5 export 2.4.2, ColReorder 1.7.0, Responsive 2.5.0, RowGroup 1.4.1, RowReorder 1.4.1).
The parameter is called 'tfoot' in the footerCallback options doc(https://datatables.net/reference/option/footerCallback) is described as 'element of the table's footer'. Which in addition with the name made me think that I would recieve the tfoot-element directly. In actuality the parameter seems to be the first footer row(<tr>).
In the example page (https://datatables.net/examples/advanced_init/footer_callback.html) the name chosen is 'row' which seems closer to the actual behaviour. ^^
Kind regards,
Flo
Replies
Hi Flo,
Excellent point! Thank you for bringing that error to my attention. I've committed a fix for the documentation and it will be reflected on the site soon.
Allan