
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
react-absolute-grid
Advanced tools
An absolutely positioned fully configurable React grid with drag/drop, filtering, selection, and sorting
An absolute layout grid with animations, filtering, zooming, and drag and drop support. Use your own component as the grid item. See the Demo.
Install with npm install react-absolute-grid
import React from 'react';
import AbsoluteGrid from './lib/AbsoluteGrid.jsx';
var sampleItems = [
{key: 1, name: 'Test', sort: 0, filtered: 0},
{key: 2, name: 'Test 1', sort: 1, filtered: 0},
];
React.render(<AbsoluteGrid items={sampleItems} />, document.getElementById('Container'));
false for no animation.Display objects will receive item, style, and index as properties. You must apply the style to the root element in your render. Here's the simplest possible example with drag and drop support:
'use strict';
import React from 'react';
import BaseDisplayObject from '../lib/BaseDisplayObject.jsx';
export default class SampleDisplay extends BaseDisplayObject{
constructor() {
super();
//Only required if you want drag/drop support
this.onDrag = super.onDrag.bind(this);
this.onMouseOver = super.onMouseOver.bind(this);
}
render() {
//IMPORTANT: Without the style, nothing happens :(
var itemStyle = super.getStyle.call(this);
return <div onMouseDown={this.onDrag} onMouseOver={this.onMouseOver} style={itemStyle}></div>;
}
}
Once you've created a display object, use it like this:
var dispalyObject = (<SampleDisplay />);
var grid = (<AbsoluteGrid ... displayObject={displayObject}/>);
The idea behind AbsoluteGrid is high performance. This is achieved by using Translate3d to position each item in the layout. Items are never removed from the DOM, instead they are hidden. For best performance you should avoid re-arranging or removing items which you pass into AbsoluteGrid, instead you can use the filtered and sort properties to hide or sort an item. Those properties are customizable using the keyProp and filterProp properties.
This component should work in all browsers that support CSS3 3D Transforms. If you need IE9 support you can modify it to use transform rather than transform3d. Pull requests welcome!
Drag and Drop only works on IE11+ due to lack of pointer events, although there is a workaround coming soon.
FAQs
An absolutely positioned responsive touch-enabled fully configurable React grid with drag/drop, filtering, and sorting
The npm package react-absolute-grid receives a total of 85 weekly downloads. As such, react-absolute-grid popularity was classified as not popular.
We found that react-absolute-grid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.