Custom table
I know there's a ViewColumn to create custom view in a table. Buts is there a way to create a custom Table in a resource. not a custom page. If you want the table structure to be in a certain way...
Solution:Jump to solution
All the functionality relies way to much on the Blade files, so it's not a good idea to overwrite the table structure.
7 Replies
Solution
All the functionality relies way to much on the Blade files, so it's not a good idea to overwrite the table structure.
make a custom table??
Overwrite the table structure in any way.
If you can't do it with CSS, I wouldn't recommend it.
oh okay then thanks
Anyone know how to do it, i already have custom Table with my additions derived from base Table and custom view blade, but now Resource page expects only Table type, so it seems i would need to override more and more
Someone knows what would be the simplest way or i really need to override a lot to use custom table?
So you overwrote the Table class and it's view? I wouldn't encourage to do that 😅
Yeah i know, but there is no other way, there are no other extension points, this is 4.x.
It isn't really much, its just derived from existing Table and copied modified Table view.
And my functionality HasCollapsibleRow
And i really want collapsible table rows with a hidden row pattern
There is nothing in the view to inject it in the right place currently
Its work in progress, for now i just hacked ListRecords just to have it
public function getTable(): Table {
$ct = CustomTable::make($this)
->query($this->table->getQuery());
$ct = ImportOffersTable::configureSecond($ct);
return $ct;
}
Makes me wonder, this could be added to Filament out of the box, hidden row is popular pattern for such thing and probably better for most than the available collapsible support that is no ideal