ListView widget improved to use Jquery MatchHeight.js
More detailed information in GitHub repository: https://github.com/nerburish/yii2-match-height-view
Demostration ¶
https://cloud.githubusercontent.com/assets/5610788/17892390/54c73df0-6941-11e6-8f2b-e2345b3b60de.png
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist nerburish/yii2-match-height-view "dev-master"
or add
"nerburish/yii2-match-height-view": "dev-master"
to the require section of your composer.json file.
Usage Exemple ¶
<?php echo \nerburish\matchheight\MatchHeightView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_item',
'cssFile' => [
"@web/css/grid-demo.css"
]
]) ?>
You may also be interested in Masonry.js ListView widget: https://github.com/nerburish/yii2-masonry-view
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.