F
Filamentβ€’6mo ago
Saturn

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
DrByte
DrByteβ€’6mo ago
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.
Tieme
Tiemeβ€’6mo ago
Filament
Simple Lightbox by Solution Forest - Filament
A simple and lightweight solution for implementing a lightbox feature in your Filament admin panel
DrByte
DrByteβ€’6mo ago
Oh. Nicely done. One more plugin I can cross off my wish-list! πŸ˜„
Saturn
Saturnβ€’6mo ago
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.