branchonline/yii2-lightbox
最新稳定版本:v1.2.0
Composer 安装命令:
composer require branchonline/yii2-lightbox
包简介
Lightbox widget for Yii2
README 文档
README
- Lightbox widget based on Lightbox2 extension http://lokeshdhakar.com/projects/lightbox2/
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist branchonline/yii2-lightbox "*"
or add
"branchonline/yii2-lightbox": "*"
to the require section of your composer.json.
Usage
Once the extension is installed, simply add widget to your page as follows:
use branchonline\lightbox\Lightbox; echo Lightbox::widget([ 'files' => [ [ 'thumb' => 'url/to/thumb.ext', 'original' => 'url/to/original.ext', 'title' => 'optional title', ], ] ]);
统计信息
- 总下载量: 136.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-05-14