2017 © Pedro Peláez
 

library yii2-galleria-widget

yii2-galleria-widget

image

xj/yii2-galleria-widget

yii2-galleria-widget

  • Thursday, November 30, 2017
  • by xjflyttp
  • Repository
  • 1 Watchers
  • 1 Stars
  • 210 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

# yii2-galleria-widget

https://github.com/aino/galleria

### composer.json

"require": {
    "xj/yii2-galleria-widget": "~1.0.0"
},

Themes

\xj\galleria\themes\DefaultAssets::register($this);
\xj\galleria\themes\TwelveAssets::register($this);

BasicAssets

\xj\galleria\GalleriaAssets::register($this);

### With Html Tag

#galleria{ width: 700px; height: 400px; background: #000 }

```html , (*1)

```php
\xj\galleria\themes\DefaultAssets::register($this);
xj\galleria\Galleria::widget([
    'selector' => '#galleria',
]);

### With Html Data Tag

#gallery{ width: 700px; height: 400px; background: #000 }
#source{display:none;}

```html , (*2)

```php
\xj\galleria\themes\DefaultAssets::register($this);
xj\galleria\Galleria::widget([
    'selector' => '#gallery',
    'jsOptions' => [
        'dataSource' => '#source',
        'keepSource' => false,
    ]
]);

### With Javascript Data

#gallery{ width: 700px; height: 400px; background: #000 }

```html , (*3)

```php
\xj\galleria\themes\DefaultAssets::register($this);
xj\galleria\Galleria::widget([
    'selector' => '#gallery',
    'jsOptions' => [
        'dataSource' => [
            ['image' => Yii::getAlias('@web/images/hoverzoom/1.jpg')],
            ['image' => Yii::getAlias('@web/images/hoverzoom/3.jpg')],
            ['image' => Yii::getAlias('@web/images/nivoslider/1.jpg')],
        ],
        'keepSource' => false,
    ]
]);

The Versions

30/11 2017

dev-master

9999999-dev

yii2-galleria-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

23/10 2015

1.0.1

1.0.1.0

yii2-galleria-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp

07/07 2015

1.0.0

1.0.0.0

yii2-galleria-widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar xjflyttp