mdq/yii2-widget-ekkolightbox

http://ashleydw.github.io/lightbox/

1.0.0 2017-11-22 18:27 UTC

This package is not auto-updated.

Last update: 2025-05-11 06:45:42 UTC


README

http://ashleydw.github.io/lightbox/

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require mdq/yii2-widget-ekkolightbox "*"

or add

"mdq/yii2-widget-ekkolightbox": "*"

to the require section of your composer.json file.

Require Bootstrap 4. You can use:

    "bower-asset/bootstrap": "~4.0.0@alpha",
    "yiisoft/yii2-bootstrap": "2.1.x-dev as 2.0.0",

Usage

Once the extension is installed, simply use it in your code by :

use mdq\ekkolightbox\LightBox;
<?= Lightbox::widget([
    'text' => 'text or image thumb', 
    'url' => ['image or embed video link'], 
    'settings' => ['js pluggins settings'], 
    'options' => ['html tag properties']
]); ?>