react-grid-layout
Advanced tools
Changelog
1.3.0 (Aug 27, 2021)
allowOverlap
prop, when true
, allows overlapping grid items. #1470onDropDragOver
callback. #1395
droppingItem
based on what is being dragged over. Return w
and h
to adjust the item. It is then spread into the dropping placeholder.onDragOver: (e: DragOverEvent) => { w: number, h: number } | false;
false
to short-circuit the dragover.compactType
is null
. #1474null
children as a convenience so that inline expressions don't break the library. #1296Changelog
1.2.5 (May 10, 2021)
ref
refactor to remove ReactDOM in 1.2.3.
react-resizable
to 3.0.1
, which like our other deps, is only compatible with React@>=16.3
.resizeHandle
((axis: ResizeHandleAxis, ref: ReactRef<HTMLElement>) => React$Element
)verticalCompact
propChangelog
1.2.4 (Mar 18, 2021)
This version fixes a serious render bug in <WidthProvider>
. 1.2.3 should not be used.
Changelog
1.2.3 (Mar 16, 2021)
<React.StrictMode>
.
ReactDOM
has been removed by using React.createRef()
inside RGL, and the new nodeRef
prop in react-draggable
.Changelog
1.2.2 (Mar 1, 2021)
onResize
as changed in 1.2.1 did not correctly save the layout. This is now fixed.
Changelog
1.2.1 (Mar 1, 2021)
We have created the React-Grid-Layout Organization! Therefore the repository has moved.
This organization will grow as time goes on, and also contains the dependencies of RGL.
classList
in Firefox onDragOver hack. #1310scale
property. As scale
support was added to dependencies, this caused double-compensation for scale, causing the dragged element not to follow the cursor. #1393onLayoutChange
sometimes not triggering on resize. We weren't cloning the layout item before modifying it. Thanks @xcqwan. #1289Changelog
1.2.0 (Nov 17, 2020)
react-resizable
. For example:<ReactGridLayout
resizeHandle={<span className="custom-handle custom-handle-se" />}
{...props}
/>
Thanks @typeetfunc #1303
Changelog
1.1.0 (Sep 3, 2020)
resizeHandles
prop, which is default ['se']
(for 'southeast').
['s', 'se', 'e']
, to place three handles on the bottom side, bottom-right corner, and right side.containerPadding
change in #1138. This change was meant to be types-only, but it caused a behavioral change where the default value of containerPadding
became [0, 0]
, not margin
, which is default [10, 10]
.npmignore
to improve package size.Changelog
1.0.0 (July 20, 2020)
React-Grid-Layout has been in 0.x
status for far too long. With the addition of some new features in this version and a breaking change, I thought it was time to move to a stable semver.
onDrop
callback now has a form more consistent with other callbacks.
(elemParams: { x: number, y: number, w: number, h: number, e: Event }) => void
(layout: Layout, item: ?LayoutItem, e: Event) => void
innerRef: React.Ref<'div'>
prop to expose a ref for the grid layout's outer div. Thanks @paul-sachs #1176isBounded
property to prevent dragging items outside of the grid. Thanks @artembykov #1248