Skip to content

lsx08/react-grid-layout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Grid-Layout-Enhancement

React-Grid-Layout-Enhancement is a grid layout system modified by React-Grid-Layout, for React.

change log:

1.add layout change reason

add ChangeReason in utils.js:
export const ChangeReason = {
  didMount: "didMount",
  didUpdate: "didUpdate",
  dropItem: "dropItem",
  containerWidthChange: "containerWidthChange",
  itemMove: "itemMove",
  itemResize: "itemResize"
};

modify onLayoutChange func:
onLayoutChange(changeReason, layout, newLayouts)

so that developer can know the reason why onLayoutChange fired
  1. lock width and height radio for ResponsiveReactGridLayout when window size changed
u can add isLockWidthAndHeightRadio={false} props to ResponsiveReactGridLayout to disable this function

About

A draggable and resizable grid layout with responsive breakpoints, for React.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.0%
  • CSS 1.5%
  • Makefile 1.3%
  • HTML 0.2%