Skip to content
Turn your grid into a lightbox & gallery
Branch: master
Clone or download
z-song Merge pull request #6 from jxlwqq/patch-2
add img class option.
Latest commit a19772d Mar 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/assets first commit Sep 12, 2018
src add img class. Mar 7, 2019
.gitignore
LICENSE first commit Sep 12, 2018
README.md Update README.md Mar 7, 2019
composer.json first commit Sep 12, 2018

README.md

Turn your grid into a lightbox & gallery

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

DEMO lightbox & gallery

Login using admin/admin

Installation

composer require laravel-admin-ext/grid-lightbox

php artisan vendor:publish --tag=laravel-admin-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']]);

Donate

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

PayPal Me

-1

License

Licensed under The MIT License (MIT).

You can’t perform that action at this time.