Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions packages/tables/docs/10-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,39 @@ public function table(Table $table): Table
]);
```

## Add content to table footer

You can add a footer to a table using the `$table->contentFooter()` method:

```php
use Filament\Tables\Table;

public function table(Table $table): Table
{
return $table
->contentFooter(view('tables.footer'))
->columns([
// ...
]);
}
```

Be careful because you'll need to add a `<td>` element in your view, with the number of columns.

Note that this is not necessary if you're using `Split` layout for your columns.

This is how your view should be structured:
```php
@props([
'columns',
'records'
])

<td colspan="{{ count($columns) }}">
Footer content
</td>
```

## Polling table content

You may poll table content so that it refreshes at a set interval, using the `$table->poll()` method:
Expand Down