insolita / yii2-jgallery-widget
http://plugins.jquery.com/jgallery/
dev-master
2014-12-11 01:42 UTC
This package is auto-updated.
Last update: 2024-09-18 02:56:05 UTC
README
http://plugins.jquery.com/jgallery/
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一:
php composer.phar require --prefer-dist insolita/yii2-jgallery-widget "*"
或者在您的composer.json
文件的require部分添加以下内容:
"insolita/yii2-jgallery-widget": "*"
使用方法
扩展安装完成后,只需在您的代码中使用即可
<?php echo \insolita\jgallery\JGalleryWidget::widget([ 'selector'=>'#gallery', 'pluginOptions'=>[ 'mode'=>'full-screen', 'thumbType'=>'image', 'autostart'=>true, 'canClose'=>false, 'backgroundColor'=>'#000', 'textColor'=>'#fff' ] ])?>
有关jGallery的更多文档,请参阅http://jgallery.jakubkowalczyk.pl/