Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
grid-gallery
Advanced tools
JavaScript grid gallery to produce un-equal cols grid
via npm grid gallery can be used via CommonJS or AMD after installation via npm.
$ npm install --save grid-gallery
bower
$ bower install --save grid-gallery
the container must have grid-gallery
class and the grid items grid-gallery__item
<link rel="stylesheet" href="path/to/grid-gallery/dist/css/grid-gallery.min.css">
...
<!-- grid container -->
<div id="container" class="grid-gallery">
<!-- grid item -->
<div class="grid-gallery__item">
<div>
<!-- some content -->
</div>
</div>
<!-- grid item -->
<div class="grid-gallery__item">
<div>
<!-- some content -->
</div>
</div>
....
</div>
...
<script src="path/to/grid-gallery/dist/js/grid-gallery.js"></script>
var GridGallery = require('grid-gallery');
var options = { ... }
var myGrid = new GridGallery(document.getElementById('container'), options);
import GridGallery from 'grid-gallery';
var options = { ... }
var myGrid = new GridGallery(document.getElementById('container'), options);
require(['grid-gallery'], (GridGallery) => {
var options = { ... }
var myGrid = new GridGallery(document.getElementById('container'), options);
})
var options = {
direction: 'right', // left is default for ltr and right for rtl.
watch: true, // false by default, and if set to true
// it will watch DOM changes
// and update positions if grid item inserted/removed
// callbacks
onInitialize: () => { ... }, // called before init.
onInitialized: () => { ... }, // called after init.
onUpdate: () => { ... }, // called before update after 'resize' event as example.
onUpdated: () => { ... }, // called after updated.
onPosition: () => { ... }, // called before setting position of grid items
onPositioned: () => { ... }, // called after positioning the grid items
}
update
it will reposition the grid itemsdestroy
it will clear the positions, reset all options and remove event handlers.FAQs
un-equal columns grid
The npm package grid-gallery receives a total of 7 weekly downloads. As such, grid-gallery popularity was classified as not popular.
We found that grid-gallery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.