Navigation on hover in Actions

hi, anyway to add navigate on hover to actions that are url?
5 Replies
awcodes
awcodes9mo ago
What are you trying to do? If I’m understanding correctly you want to navigate the user when they hover on the link instead of clicking it?
Cosme fulanito
Cosme fulanitoOP9mo ago
Prefetching the page on hover, like in https://livewire.laravel.com/docs/wire-navigate, I have implemented it with my own components. However, I am curious whether it is possible with vanilla Filament Actions.
awcodes
awcodes9mo ago
Haven’t tried it but possibly with ->extrasAttributes() on the action.
Cosme fulanito
Cosme fulanitoOP9mo ago
Yes, I tried, but the navigation must be added to the <a> tag.
awcodes
awcodes9mo ago
->url() should make the action an a tag by default. Look at the html in devtools.
Want results from more Discord servers?
Add your server