2017 © Pedro Peláez
 

yii2-extension lazyload

Lazyload integration for Yii2

image

baorv/lazyload

Lazyload integration for Yii2

  • Saturday, April 14, 2018
  • by roanvanbao
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 Lazyload widget

This package provides lazyload widget for Yii2 Framework, (*1)

Install

Run composer to install, (*2)

composer require "baorv/lazyload":"*" 

Or define package in require section of composer.json, (*3)

...
require: {
    ...
    "baorv/lazyload":"*"
    ...
},
...

Usage

You can use this widget in any view, (*4)

use baorv\lazyload\widgets\Lazyload;

Lazyload::widget([
    'src' => 'your-image.png',
    'options' => [],
    'clientOptions' => [],
    'imageClass' => 'your-class'
])

The Versions

14/04 2018

dev-master

9999999-dev

Lazyload integration for Yii2

  Sources   Download

MIT

The Requires

 

by baorv

extension yii2 javascript lazyload