Navigation on hover in Actions

hi, anyway to add navigate on hover to actions that are url?
5 Replies
awcodes
awcodes4mo 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 fulanito4mo 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
awcodes4mo ago
Haven’t tried it but possibly with ->extrasAttributes() on the action.
Cosme fulanito
Cosme fulanito4mo ago
Yes, I tried, but the navigation must be added to the <a> tag.
awcodes
awcodes4mo ago
->url() should make the action an a tag by default. Look at the html in devtools.