Merge pull request #6447 from archilex/Add-render-hooks-before-and-after-tables

Add render hooks before and after table
This commit is contained in:
Dan Harrin
2023-05-08 10:52:31 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -320,5 +320,7 @@ The available hooks are as follows:
- `page.footer-widgets.end` - after page footer widgets
- `page.actions.start` - before page actions
- `page.actions.end` - after page actions
- `resource.pages.list-records.table.start` - before the resource table
- `resource.pages.list-records.table.end` - after the resource table
- `resource.relation-manager.start` - before the relation manager table
- `resource.relation-manager.end` - after the relation manager table
@@ -4,5 +4,9 @@
'filament-resources-' . str_replace('/', '-', $this->getResource()::getSlug()),
])"
>
{{ \Filament\Facades\Filament::renderHook('resource.pages.list-records.table.start') }}
{{ $this->table }}
{{ \Filament\Facades\Filament::renderHook('resource.pages.list-records.table.end') }}
</x-filament::page>