kowap/yii2-lightgallery
最新稳定版本:1.5.0
Composer 安装命令:
composer require kowap/yii2-lightgallery
包简介
lightgallery
README 文档
README
More information about gallery here.
Installation
The preferred way to install this extension is through composer.
Either run
composer require kowap/yii2-lightgallery
or add
"kowap/yii2-lightgallery": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php echo \kowap\lightgallery\LightGalleryWidget::widget([ 'items' => [ [ 'thumb' => '../thumb/image_1.jpg', 'src' => '../big/image_1.jpg' ], [ 'thumb' => '../thumb/image_2.jpg', 'src' => '../big/image_2.jpg' ] ], // more options http://sachinchoolur.github.io/lightGallery/docs/api.html 'options' => [ 'mode' => 'lg-zoom-in-big', 'download' => false, 'zoom' => false, 'share' => false ] ]); ?>
统计信息
- 总下载量: 758
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-06-30