himiklab/yii2-colorbox-widget

Customizable lightbox widget for Yii2

Installs: 38 163

Dependents: 13

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 5

Open Issues: 0

Type:yii2-extension

1.0.3 2016-02-02 10:23 UTC

This package is auto-updated.

Last update: 2020-02-13 14:48:35 UTC


README

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