2017 © Pedro Peláez
 

yii2-extension yii2-fancybox

FancyBox3 Widget for Yii2 framework

image

sankam/yii2-fancybox

FancyBox3 Widget for Yii2 framework

  • Sunday, June 25, 2017
  • by sankam-nikolya
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Fancybox3 Widget for Yii2

Yii2 extension for fancyapps.com/fancybox, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer require "sankam/yii2-fancybox" "*"

or add, (*4)

"sankam/yii2-fancybox" : "*"

to the require section of your application's composer.json file., (*5)

Usage

use sankam\fancybox\FancyBox;

FancyBox::widget([
    'target' => '[data-fancybox]',
    'options' => [
        'loop' => false,
        'padding' => 0,
        'margin' => [44, 0],
        'onInit' => new JsExpression("
            function( instance ) {
                instance.$refs.downloadButton = $('<a class=\"fancybox-button fancybox-download\"></a>')
                .appendTo( instance.$refs.buttons );
            }
        "),
        'beforeMove' => new JsExpression("
            function( instance, current ) {
                instance.$refs.downloadButton.attr('href', current.src);
            }
        "),
    ],
]);

The Versions

25/06 2017

dev-master

9999999-dev

FancyBox3 Widget for Yii2 framework

  Sources   Download

GPL 3.0

The Requires

 

extension yii2 widget fancybox3

25/06 2017

0.0.2

0.0.2.0

FancyBox3 Widget for Yii2 framework

  Sources   Download

GPL 3.0

The Requires

 

extension yii2 widget fancybox3

02/02 2017

0.0.1

0.0.1.0

FancyBox3 Widget for Yii2 framework

  Sources   Download

GPL 3.0

The Requires

 

extension yii2 widget fancybox3