PHP code example of ereminmdev / yii2-masonry
1. Go to this page and download the library: Download ereminmdev/yii2-masonry library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ereminmdev / yii2-masonry example snippets
MasonryAsset::register($this);
$this->registerJs('
new Masonry(".items", {
itemSelector: ".item"
});
');
ImagesLoadedAsset::register($this);
MasonryAsset::register($this);
$this->registerJs('
imagesLoaded(document.querySelector(".items"), () => {
new Masonry(".items", {
itemSelector: ".item"
});
});
');