import React from "react"; import RGL, { WidthProvider } from "react-grid-layout"; const ReactGridLayout = WidthProvider(RGL); /** * This layout demonstrates how to use static grid elements. * Static elements are not draggable or resizable, and cannot be moved. */ export default class StaticElementsLayout extends React.PureComponent { constructor(props) { super(props); this.onLayoutChange = this.onLayoutChange.bind(this); } onLayoutChange(layout) { this.props.onLayoutChange(layout); } render() { return (
1
2 - Static
3
4 - Draggable with Handle

[DRAG HERE]

); } } if (process.env.STATIC_EXAMPLES === true) { import("../test-hook.jsx").then(fn => fn.default(StaticElementsLayout)); }