maopengwei / yii2-colorbox-widget
Customizable lightbox widget for Yii2
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 6
Type:yii2-extension
Requires
- kvdh/symfony-jquery-colorbox: 1.4.15
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-05-15 02:10:28 UTC
README
A customizable lightbox jQuery plugin for Yii2 based on Colorbox.
Installation
The preferred way to install this extension is through composer.
Either run
composer require "maopengwei/yii2-colorbox-widget" "*"
or add
"maopengwei/yii2-colorbox-widget" : "*"
to the require section of your application's composer.json
file.
Usage
- In view:
use maopenwei\colorbox\Colorbox; <?= Colorbox::widget([ 'targets' => [ '.colorbox' => [ 'maxWidth' => 800, 'maxHeight' => 600, ], ], 'coreStyle' => 2 ]) ?>