bariew / yii2-colorbox-widget
Customizable lightbox widget for Yii2
Package info
github.com/bariew/yii2-colorbox-widget
Type:yii2-extension
pkg:composer/bariew/yii2-colorbox-widget
1.0.2
2015-01-23 10:10 UTC
Requires
- bower-asset/jquery-colorbox: 1.5.*
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-03-16 18:12:18 UTC
README
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 "himiklab/yii2-colorbox-widget" "*"
or add
"himiklab/yii2-colorbox-widget" : "*"
to the require section of your application's composer.json file.
Usage
- In view:
use himiklab\colorbox\Colorbox; <?= Colorbox::widget([ 'targets' => [ '.colorbox' => [ 'maxWidth' => 800, 'maxHeight' => 600, ], ], 'coreStyle' => 2 ]) ?>