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

widgetcolorboxlightbox

Colorbox Widget for Yii2

A customizable lightbox jQuery plugin for Yii2 based on Colorbox.

[Packagist]() [Packagist]() [license]()

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
21 downloads in the last day
766 downloads in the last 30 days
80467 total downloads