Header Table SortBy
I cannot for the life of me figure out in the docs where to replicate the sort by found on this page of the demo: https://demo.filamentphp.com/blog/authors
Solution:Jump to solution
The demo for that resource is using a split and a stack https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Blog/AuthorResource.php
GitHub
demo/app/Filament/Resources/Blog/AuthorResource.php at main · filam...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.
3 Replies
Solution
The demo for that resource is using a split and a stack https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Blog/AuthorResource.php
GitHub
demo/app/Filament/Resources/Blog/AuthorResource.php at main · filam...
Source code for the demo.filamentphp.com website. Contribute to filamentphp/demo development by creating an account on GitHub.
If you’re not using a split with stacks then the sortable will be the normal sort on a column. This is because splits change the underlying html structure so it is no longer an actual table.
That explains it, thank you