Modal Popup on 'ImageColumn' Click - Table
Good day. It is possible to display a Modal on a click on 'ImageColumn' on table?
CURRENT CODE:
Tables\Columns\ImageColumn::make('requirement_qrcode_path')
->height('80%')
->width('100%')
->getStateUsing(function (RequirementsManagement $record): ?string {
return $record->requirement_qrcode_path ?? '';
})
->extraImgAttributes([
'img' => 'src'
]),
2 Replies
up
I think you can use
->action(Tables\Actions\Action::make('modal')...)
https://filamentphp.com/docs/3.x/actions/modals#custom-modal-content