A customizable lightbox jQuery plugin for Yii2 based on Colorbox.
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist "himiklab/yii2-colorbox-widget" "*"
or add
"himiklab/yii2-colorbox-widget" : "*"
to the require section of your application's composer.json file.
Usage ¶
Using as field in ActiveForm:
use himiklab\colorbox\Colorbox;
<?= Colorbox::widget([
    'targets' => [
        '.colorbox' => [
            'maxWidth' => 800,
            'maxHeight' => 600,
        ],
    ],
    'coreStyle' => 2
]) ?>
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.