Closed insulae closed 2 years ago
I had the same problem and i have implemented a little fix to exact this problem in the near future and link it to here.
Excellent, thanks in advance!
Could you please confirm if https://github.com/MedicOneSystems/livewire-datatables/pull/455 solves your issue ? thanks !
I downloaded the version: https://github.com/MedicOneSystems/livewire-datatables/tree/454-pass-params-to-render but I have the error: Cannot use array as default value for parameter $data of type Illuminate\Contracts\Support\Arrayable
in your code you have:
public function view($view, Arrayable $data = [])
I tried to figure out how to use the "Arrayable" and i didn't find. So I remove the Arrayable and it's work.
Removing the Arrayable from Column.php:
public function view($view, $data = [])
I can do and work as expected :
->view('_tbl.extra', ["modal" => "myModal"])
You must confirm now if I am using wrong or if that Arrayable shouldn't go (I'm not very experienced)
You are totally right; the type hint is not necessary. I will remove the type hint and merge the feature tomorrow when i am in office.
I have this column:
I want to send extra data to the view (in this case the name of a modal) I cant use callback (I think) because I need to use ::raw
how can I do this? or an alternative to this: