fsamapoor
Is it possible to call a table action from a TextColumn cell?
I have a table in my resource with a few table actions.
Is there any way to call one of the actions when the users clicks on a Tables\Columns\TextColumn cell?
I have a table action named "show-message-text-modal" and I can select the table action using this closure, I just don't know how to trigger it or call it.
3 replies
How to access to the selected option in the SelectFilter?
I have provided options to a SelectFilter and everything works as expected. I have a special case where I need to modify the query if one specific option gets selected. How could I access to the selected option? Is it possible to modify the query based on the selected options?
I thought about chaining
when
method to the filter, but I just don't know how can I have access to the selected option so that I can replace the true
part with the condition.
5 replies
How to test Counting relationships
I'm counting the number of related records in a text column based on the documentation and everything works fine.
How can I test the relationship count with Pest? I tried to test it by chaining
assertTableColumnStateSet
method to the table component, but no luck so far.
Please tell me if I should provide any further details.
The error:
Failed asserting that a table column with name [messages_count] has value of [1] for record [1] on the [App\Filament\Resources\TelegramUserResource\Pages\ListTelegramUsers] component.
The test:
6 replies