snowsoft / grid-lightbox
Turn your grid into a lightbox & gallery
v1.0.5
2023-01-27 10:34 UTC
Requires
- php: >=7.0.0
- snowsoft/laravel-admin: >=1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
README
This is an extension to integrates Magnific Popup into laravel-admin.
Login using admin/admin
Installation
composer require snowsoft/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']]);
License
Licensed under The MIT License (MIT).