devleaks / yii2-metafizzy
Yii2 asset bundle wrapper around several David DeSandro javascript libraries
Installs: 5 064
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/draggabilly: *
- bower-asset/imagesloaded: *
- bower-asset/isotope: *
- bower-asset/masonry: *
- bower-asset/packery: *
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
This package is not auto-updated.
Last update: 2024-05-29 07:16:50 UTC
README
Yii2 asset bundle wrapper around David DeSandro javascript libraries masonry, isotope, packery, and draggabilly.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist devleaks/yii2-metafizzy "*"
or add
"devleaks/yii2-metafizzy": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code :
(You use Isotope, Masonry, Packery, or Draggabilly the same way.)
<?php use devleaks\metafizzy\Isotope; ?> <div id="isotope-container"> <div class="item">...</div> <div class="item w2">...</div> <div class="item">...</div> ... </div> <?= Isopote::widget([ 'options' => [ 'id' => 'isotope-container' ], 'clientOptions' => [ 'itemSelector' => '.item', 'layoutMode' => 'fitRows' ] ]) ?>