hi guys, exists equivalent beforeFill for modal?
I can use beforefill to handle some column information, such as converting a json to an array, this works fine using page view, but I wanted to know if there is a resource to handle this information that will stick to an element of my form, even if be possible to do in my resource.
My goal is to load files into an input multiple file for viewing using a modal, but the column saves the uploaded files as a json, so I need to convert to an array so that the file field can list the files saved in it.
Solution:Jump to solution
Resolved:
Tables\Actions\ViewAction::make() ->mutateRecordDataUsing(function (array $data): array {
// my code
return $data;...
return $data;...
1 Reply
Solution
Resolved:
Tables\Actions\ViewAction::make() ->mutateRecordDataUsing(function (array $data): array {
// my code
return $data; })
return $data; })