toriphes/yii2-widget-lazyload
最新稳定版本:1.0.0
Composer 安装命令:
composer require toriphes/yii2-widget-lazyload
包简介
wrapper of http://www.appelsiini.net/projects/lazyload jquery library
README 文档
README
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]);
统计信息
- 总下载量: 38.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-11-24