open a modal from a navigationitem
Hi.
I would like to add a link in left navigation to open a modal and I put the link with this code in the file
The previous code shows the link (image attached), but I want to add something like this inside the link: to open a modal with assuming I have a modal with that ID.
I have not found how to add that inside an Item of Navigation Panel.
Thanks for reading and helping.
Eday Gonzalez
7 Replies
Doesn't seem possible at the moment. You could see if Dan would support a PR for ->extraAttributes()
Do you know if there is another way to do it other than a button in a widget?
I do not...
Well you could make a action that opens a modal at least
and you pretty much can customize them however you want, passing custom views, etc...
https://filamentphp.com/docs/3.x/actions/modals
hey there is also this one that maybe could fit your needs
https://filamentphp.com/docs/3.x/panels/resources/getting-started#simple-modal-resources
I will see it. Thank you.