can i create tfoot like thead

can i create tfoot like thead

SunilgoelSunilgoel Posts: 48Questions: 19Answers: 0

Hi Support,
"columns": [
{ "title" :"SLNo",data: 'slno','sClass': 'text-primary text-center' },
]

above statement automatically create thead and th in table , can i create tfoot .

Regards.
Sunil

Answers

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    No, sorry. There are a number of other threads on this topic (such as this one) where this has been asked, but I'm afraid that there is no option for DataTables to automatically create footer elements at this time.

    You have to use standard jQuery / DOM methods to add them to the table before the DataTable is initialised.

    Regards,
    Allan

This discussion has been closed.