Yii2 widget to extend the Yii2 ListView for use it as Masonry grid layout
More detailed information in GitHub repository: https://github.com/nerburish/yii2-masonry-view
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist nerburish/yii2-masonry-view "dev-master"
to the require section of your composer.json file.
echo \nerburish\masonryview\MasonryView::widget([ 'dataProvider' => $dataProvider, 'itemView' => '_item', 'clientOptions' => [ 'gutterWidth' => 15, ], 'cssFile' => [ "@web/css/masonry-demo.css" ] ])
You may also be interested in MatchHeight.js ListView widget: https://github.com/nerburish/yii2-match-height-view