https://github.com/baorv/yii2-lazyload
Lazyload integration for https://www.andreaverlicchi.eu/lazyload/
https://github.com/baorv/yii2-lazyload
framework lazyload widget yii2
Last synced: about 2 months ago
JSON representation
Lazyload integration for https://www.andreaverlicchi.eu/lazyload/
- Host: GitHub
- URL: https://github.com/baorv/yii2-lazyload
- Owner: baorv
- License: other
- Created: 2018-04-14T02:10:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T03:04:17.000Z (about 8 years ago)
- Last Synced: 2025-06-12T03:11:48.881Z (about 1 year ago)
- Topics: framework, lazyload, widget, yii2
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Yii2 Lazyload widget
This package provides lazyload widget for Yii2 Framework
## Install
Run composer to install
```bash
composer require "baorv/lazyload":"*"
```
Or define package in require section of composer.json
```yaml
...
require: {
...
"baorv/lazyload":"*"
...
},
...
```
## Usage
You can use this widget in any view
```php
use baorv\lazyload\widgets\Lazyload;
Lazyload::widget([
'src' => 'your-image.png',
'options' => [],
'clientOptions' => [],
'imageClass' => 'your-class'
])
```