A customizable lightbox jQuery plugin for Yii2 based on Colorbox.
[]() []() []()
The preferred way to install this extension is through composer.
Either run
php composer.phar require "himiklab/yii2-colorbox-widget" "*"
or add
"himiklab/yii2-colorbox-widget" : "*"
to the require section of your application's composer.json
file.
use himiklab\colorbox\Colorbox;
<?= Colorbox::widget([
'targets' => [
'.colorbox' => [
'maxWidth' => 800,
'maxHeight' => 600,
],
],
'coreStyle' => 2
]) ?>
Comments