kuliev/yii2-lightbox
最新稳定版本:v1.0.1
Composer 安装命令:
composer require kuliev/yii2-lightbox
包简介
Lightbox2 widget for Yii2
关键字:
README 文档
README
Lightbox widget for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist kuliev/yii2-lightbox "^1.0"
or add
"kuliev/yii2-lightbox": "^1.0"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use kuliev\lightbox\Lightbox; echo Lightbox::widget([ 'options' => [ 'fadeDuration' => '2000', 'albumLabel' => "Image %1 of %2", ], 'linkOptions' => ['class' => 'pull-left'], 'imageOptions' => ['class' => 'thumbnail'], 'items' => [ [ 'thumb' => '/images/image01-120x90.jpg', 'image' => '/images/image01.jpg', 'title' => 'Image 1', 'group' => 'image-set1', ], [ 'thumb' => '/images/image02-120x90.jpg', 'image' => '/images/image02.jpg', 'title' => 'Image 2', 'group' => 'image-set1', ], ], ]);
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-28