yii2-colorbox-widget Customizable lightbox widget for Yii2

  1. Installation
  2. Usage
  3. Resources

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

Resources

0 0
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: himiklab
Created on: Sep 23, 2014
Last updated: 10 years ago

Related Extensions