liukai/grid-imagebox

There is no license information available for the latest version (1.0.0) of this package.

Turn your grid into a imagebox

1.0.0 2022-09-23 02:50 UTC

This package is not auto-updated.

Last update: 2024-04-19 10:41:20 UTC


README

composer require liukai/grid-imagebox

php artisan vendor:publish --tag=laravel-admin-grid-viewer

Configurations

Open config/admin.php, add configurations that belong to this extension at extensions section.


    'extensions' => [

        'grid-imagebox' => [
        
            // Set to `false` if you want to disable this extension
            'enable' => true,
        ]
    ]

Usage

Use it in the grid:

// simple lightbox
$grid->picture()->imagebox();


//zoom effect
$grid->picture()->imagebox(['zooming' => true]);

//width & height properties
$grid->picture()->imagebox(['width' => 50, 'height' => 50]);

//img class properties
$grid->picture()->imagebox(['class' => 'rounded']);

License

Licensed under The MIT License (MIT).