lumenpink/yii2-lightbox
最新稳定版本:0.1.0
Composer 安装命令:
composer require lumenpink/yii2-lightbox
包简介
Lightbox widget for Yii2 (backup from erased Yeesoft package)
关键字:
README 文档
README
Lightbox Widget for Yii 2
This module is a wrapper for Lightbox2
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist lumenpink/yii2-lightbox "~0.1.0"
or add
"lumenpink/yii2-lightbox": "~0.1.0"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply add widget to your page as follows:
use yeesoft\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', ], ], ]);
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-01-28