هذه الصفحة غير مترجمة بعد، وهي معروضة بالإنجليزية.

The data table adds a footer row as soon as one column defines footer. A footer is a string or a function of the table, so it can show a label or add up the rows, the way header builds the head.

Desk lamp2$120.00
Office chair1$340.00
Notebooks6$85.50
Monitor1$410.00
Keyboard3$284.50
Total13$1,240.00

The Item column’s footer is the text “Total”. The Quantity and Amount footers add up the rows the table shows.

footer sits on the column definition, next to header. A function receives the same context a header does, with table: table.getRowModel().rows are the rows on the current page after sorting, so the total follows the page. Columns with no footer get an empty cell.

meta: { align: "end" } on a column aligns its header, cells and footer to the end, which suits numbers.

The footer renders as the Foot slot (<tfoot>), with a FooterRow holding a FooterCell per column. When the table has a checkbox or drag-handle column, the footer row gets an empty cell for it, so the totals stay under their columns. With no footer on any column, the table renders no <tfoot> at all.