himiklab/yii2-colorbox-widget Customizable lightbox widget for Yii2

widgetcolorboxlightbox

Colorbox Widget for Yii2

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
]) ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.3 is the latest of 3 releases



MIT license
Stats
4 github stars & 5 github forks
19 downloads in the last day
725 downloads in the last 30 days
13222 total downloads