How to display tables with actions inside infolist builder ?
Hello everone, I would like to ask on how you display table using infolist builder.
As for my implementation, I use custom livewire component and build table inside that component and pass data parameters like the columns , query and actions.
I was able to display the table. but the issue occur when I click the action, it throw the exception that query is empty, given I was able to display the table data, I never expect my query to empty.
Any Ideas?
15 Replies
could you share the code?
Here for my livewire component.
this is how I use it in infolist builder
instead of this
->query($this->getQuery())
, try to add your model in the query ->query(YourModel::query())
I am making the TableEntry Dynamic like not specific to every model, so I can reuse it in different pages,
ok, but does it work?
yeap, my only problem is the action
I mean,
YourModel::query()
works with action?here is the sample image
I already added it here,
same error when you click in the action?
yes yes, when I try to dump the query before the table is return it become null,
when action is click it calling again the table(Table $table) function, but my livewire properties reset to default values,
yes.. I've never tried this way before, but if you create a mini repo in the github reproducing this issue, I can take a look
yep yep will do,
Hi @Leandro Ferreira here is repo you request https://github.com/agcodex01/table-entry where you can review the code.
Thanks 🙂
GitHub
GitHub - agcodex01/table-entry: Filament table entry
Filament table entry. Contribute to agcodex01/table-entry development by creating an account on GitHub.
ok, I'll have a look ✌️