2017 © Pedro Peláez
 

yii2-extension yii2-lazyload

Extension redactor for Yii2 Framework.

image

yiidoc/yii2-lazyload

Extension redactor for Yii2 Framework.

  • Saturday, July 22, 2017
  • by zinzinday
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-redactor

Extension LazyLoad for Yii2 Framework., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist yiidoc/yii2-lazyload "*"

or, (*4)

 "yiidoc/yii2-lazyload": "*"

to the require section of your composer.json., (*5)

Configure

Default use LazyWidget automatic render with options attributes img html tag and configure client scripts, (*6)

use yiidoc\lazyload\LazyWidget;
...
<?=LazyWidget::widget();

or manual generate img tags, (*7)

   use yiidoc\lazyload\LayzAsset;
   LayzAsset::register($view); // $view instanceOf yii\web\View
   $js = "jQuery('img.img-lazy').lazyload();";
   $view->registerJs($js);
   //manaul generate img tag
   Html::img($blank-img,['class'=>'img-lazy','data-src'=>$url]);

Bummer! i was tested on my project but not have many time to write document on file and usage. If you have problem please create a issue, (*8)

Thanks!, (*9)

The Versions

22/07 2017

dev-master

9999999-dev

Extension redactor for Yii2 Framework.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 jquery lazyload

22/07 2017

1.0.1

1.0.1.0

Extension redactor for Yii2 Framework.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 jquery lazyload

03/10 2016

1.0

1.0.0.0

Extension redactor for Yii2 Framework.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 jquery lazyload