Make Image clickable
Is there any method by which we can make an image clickable or do i need to make a custom componemt.
So i was working on a list of orders which is displayed in grid format where user can view the product detail on a button. but it doesnt looks good.
i wanted to remove this button now and make image as clickable.
4 Replies
You could probably use
extraAttributes()
to apply some targeting markup to the element, and then some custom JS to trigger a modal or lightbox to view the image in some sort of large overlay. Maybe even make it a custom component.You also can use https://filamentphp.com/plugins/solution-forest-simplelightbox
Filament
Simple Lightbox by Solution Forest - Filament
A simple and lightweight solution for implementing a lightbox feature in your Filament admin panel
Oh. Nicely done. One more plugin I can cross off my wish-list! π
i think this will work coz i have few details to show at the same time so earlier i use to show in model but now i can call that model on click of image. i think.