daikazu/filament-lightbox

This is my package filament-lightbox

v1.0.0 2024-06-21 15:48 UTC

This package is auto-updated.

Last update: 2024-09-08 14:55:05 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Lightbox to preview images in Filament PHP Tables and Information Panels that uses fslightbox.js.

Installation

You can install the package via composer:

composer require daikazu/filament-lightbox

Usage

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugin(LightBoxPlugin::make())
}
\Filament\Tables\Columns\ImageColumn::make('image')
                    ->lightbox()
\Filament\Tables\Columns\TextColumn::make('pdf_url')
                    ->lightbox("Your Url address"),
\Filament\Infolists\Components\ImageEntry::make('image')
                    ->lightbox()
\Filament\Infolists\Components\TextEntry::make('text')
                    ->lightbox("Your Url address")

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.