Download the PHP package philippfrenzel/yii2masonry without Composer
On this page you can find all versions of the php package philippfrenzel/yii2masonry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download philippfrenzel/yii2masonry
More information about philippfrenzel/yii2masonry
Files in philippfrenzel/yii2masonry
Package yii2masonry
Short Description Yii2 Masonry Integration for Yii2
License MIT
Homepage http://www.frenzel.net/
Informations about the package yii2masonry
yii2masonry
===============
Widget for masonry.js pinterest like layout container for Yii Framework 2 Original sources for the jquery plugin: http://masonry.desandro.com/
How to install?
Get it via composer by adding the package to your composer.json
:
And ensure, that you have the follwing plugin installed global:
php composer.phar global require "fxp/composer-asset-plugin:~1.0"
Due to limitations of fxp/composer-asset-plugin
you also need to add the following section to the "extra"
section of your composer.json
"asset-repositories": [
{
"name": "bower-asset/eventemitter",
"type": "bower-vcs",
"url": "git://github.com/Wolfy87/EventEmitter.git"
}
]
You may also check the package information on packagist.
Usage
On a page with a ListView, just add:
CSS
Size of columns can be defined within css
If you have a sidebar resizeble by a button you need to reload the masonry container adding these following code:
My button have an ID name #menu_toggle
INFINITE SCROLL Sample:
All versions of yii2masonry with dependencies
yiisoft/yii2 Version *
bower-asset/masonry Version 3.*
bower-asset/imagesloaded Version *
bower-asset/eventemitter Version 4.*
bower-asset/outlayer Version 1.*