ygmt/grid-lightbox

Turn your grid into a lightbox & gallery

Installs: 71

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 22

Language:CSS

v1.0.3 2019-10-11 06:38 UTC

This package is auto-updated.

Last update: 2024-04-25 14:38:46 UTC


README

This is an extension to integrates Magnific Popup into laravel-admin.

DEMO lightbox & gallery

Login using admin/admin

Installation

composer require ygmt/grid-lightbox

php artisan vendor:publish --tag=ygmt-grid-lightbox

Configurations

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

    'extensions' => [

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

Usage

Use it in the grid:

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

//gallery
$grid->picture()->gallery();

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

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

//img class properties
$grid->picture()->lightbox(['class' => 'rounded']);
$grid->picture()->gallery(['class' => ['circle', 'thumbnail']]);


//photo
$grid->picture()->photo();

Donate

Help keeping the project development going, by donating a little. Thanks in advance.

PayPal Me

-1

License

Licensed under The MIT License (MIT).