Karzer
Karzer
FFilament
Created by ahinkle on 2/5/2024 in #❓┊help
Writing a test to call toggle on ToggleColumn List Resource
Alright after a bit of digging I have found a solution. I don't love it but it works. Looking at the toggle-column blade template I found it's calling the updateTableColumnState method.
public function updateTableColumnState(string $column, string $record, mixed $input): mixed
public function updateTableColumnState(string $column, string $record, mixed $input): mixed
So calling the call method like this
call('updateTableColumnState', {{ Your-Column-Name }}, {{ Model-Id }}, {{ Boolean-Value }})
call('updateTableColumnState', {{ Your-Column-Name }}, {{ Model-Id }}, {{ Boolean-Value }})
Will get you there.
5 replies
FFilament
Created by ahinkle on 2/5/2024 in #❓┊help
Writing a test to call toggle on ToggleColumn List Resource
I'm looking for this exact same thing. Any one have any idea how to accomplish this?
5 replies