panix/wgt-fancybox
最新稳定版本:1.3.2
Composer 安装命令:
composer require panix/wgt-fancybox
包简介
Fancybox widget for Yii2
README 文档
README
Widget for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer require --prefer-dist panix/wgt-fancybox
or add
"panix/wgt-fancybox": "^1.3.0"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php echo \panix\ext\fancybox\Fancybox::widget(['target' => 'a.fancybox-image']); // or use options echo \panix\ext\fancybox\Fancybox::widget([ 'target' => 'a.fancybox-image', 'options' => [ //.. 'onInit'=> new \yii\web\JsExpression('function(){ console.log("Fancybox onInit"); }') ] ]); ?>
Links
统计信息
- 总下载量: 6.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-28