
yii2-widget-lazyload — Lazy Load Plugin for jQuery
toriphes/yii2-widget-lazyload
-
Семенов Александр
- /
- Otros
- /
- hace 7 años
- /
- /
- 11313
- /
- 0
Tiempo de publicación: miércoles, 24 de febrero de 2016 (hace 7 años)
Creado por: Семенов Александр Сергеевич
Categoría: Otros
Versión actual:
1 ene. 1970 3:00:00 (hace 53 años)
Packagist: toriphes/yii2-widget-lazyload
: https://github.com/toriphes/yii2-widget-lazyload
:
Tipo: Компонент
yii2-widget-lazyload
Wrapper of lazy loading jquery library.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist toriphes/yii2-widget-lazyload "*"
or add
"toriphes/yii2-widget-lazyload": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
use toriphes\lazyload\LazyLoad;
echo LazyLoad::widget(['src' => 'url/to/your/image.jpg']);
//enable fallback for non JavaScript user
echo LazyLoad::widget(['src' => 'url/to/your/image.jpg', 'fallback' => true]);
dev-master — 1 ene. 1970 3:00:00 (hace 53 años)
1.0.0 — 1 ene. 1970 3:00:00 (hace 53 años)
Стандартная установка:
Добавьте composer.json файл вашего проекта:
"toriphes/yii2-widget-lazyload": "*"
Запустите обновление зависимостей
todos los comentarios (0)