damiandennis / yii2-scrollingblocks
Yii2 widget for displaying imaitems like pinterest.
Installs: 84
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 6
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- php: >=5.4
- bower-asset/imagesloaded: v3.1.8
- bower-asset/modernizr: 2.6.2
- bower-asset/spin.js: 2.0.1
- bower-asset/wookmark-jquery: 1.4.8
This package is not auto-updated.
Last update: 2024-10-26 16:49:06 UTC
README
No Longer under active development (Looking for maintainer)
This is a pinterest style layout using the wookmark jquery plugin with infinite scrolling and responsive capabilities built in.
Install via composer:
php composer.phar require --prefer-dist damiandennis/yii2-scrollingblocks
You will also need to change your minimum stability in your composer.json to dev
"minimum-stability": "dev",
To use the widget:
namespace damiandennis\scrollingblocks; echo ScrollingBlocks::widget([ 'dataProvider' => $dataProvider, 'itemView' => '_view', 'wallOptions' => [ 'itemWidth' => 200, 'offset' => 5, 'autoResize' => true, 'flexibleWidth' => '20%', //This can be determined by the responsive widths below. ], 'responsiveWidths' => [ '(max-width: 520px)'=>'100%', '(min-width: 521px) and (max-width: 655px)'=>'50%', '(min-width: 656px) and (max-width: 1000px)'=>'33%', '(min-width: 1001px) and (max-width: 1199px)'=>'25%', '(min-width: 1200px)'=>'20%', ] ]);