
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A small self-adjusting js grid.
npm i gridion --save
js
import Gridion from 'gridion';
import 'gridion/dist/gridion.css';
let grid = new Gridion('.container',6);
<link rel="stylesheet" href="url">
<script src="url"></script>
let grid = new Gridion('.container',6);
Simple demo url
Demo1 url
Demo2 (Infinity gallery) url
let grid = new Gridion(parentSelector,cols);
parentSelector
- tag selector that contains grid;
cols
- columns amount;
let cellConfig = {
size:{
w:1,//width
h:2//height
},
data:'content'//content,
buildCallback:function(){
//running callback when cell is added to model
}
}
//just an array of cell configurations
let configList = [
cellConfig1,
cellConfig2,
];
grid.addItems(configList,index,cbk)
- Adds cells to grid
grid.removeItem(id,cbk)
- Remove cell from grid
grid.scaleItem(id,x,y,cbk)
- Change cell size
grid.fastAddItem(config,index)
- Adds cell to grid, without animation
grid.fastAddItems(configList,index)
- Adds cells to grid, without animation
grid.fastRemoveItem(id)
- Remove cell from grid, without animation
FAQs
A small self-adjusting js grid.
The npm package gridion receives a total of 1 weekly downloads. As such, gridion popularity was classified as not popular.
We found that gridion 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.