using @js in <x-filament::button wire:click="doMethod(@js($data))"> will fail
using @js in <x-filament::button wire:click="doMethod(@js($data))"> will fail
9 Replies
failed to compile to correct html I mean
Try putting a : in front of wire. Without it just gets treated as a sting instead of evaluating it.
Tried, didnt for me
What does the actual @js call render too.
just @js in a string
Where / how are you rendering this?
<x-filament::button wire:click="doMethod(@js($data))">
Yes, but where? In a view? In a custom field? What's the context?
in a view, and also in Blade::render()