xn/ext-grid-lightbox
Composer 安装命令:
composer require xn/ext-grid-lightbox
包简介
Turn your grid into a lightbox & gallery
README 文档
README
This is an extension to integrates Magnific Popup into laravel-admin.
Installation
composer require xn/ext-grid-lightbox
php artisan vendor:publish --provider="Xn\Grid\Lightbox\LightboxServiceProvider" --force
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:
// lightbox
$grid->column('avatar')->lightbox();
// gallery
$grid->column('avatar')->gallery();
// zoom
$grid->column('avatar')->lightbox(['zooming' => true]);
$grid->column('avatar')->gallery(['zooming' => true]);
// width & height
$grid->column('avatar')->lightbox(['width' => 50, 'height' => 50]);
$grid->column('avatar')->gallery(['width' => 50, 'height' => 50]);
// img class properties
$grid->column('avatar')->lightbox(['class' => 'rounded']);
$grid->column('avatar')->gallery(['class' => ['circle', 'thumbnail']]);
License
Licensed under The MIT License (MIT).
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-12