react-grid-layout-enhancement

1.0.10 • Public • Published

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

Package Sidebar

Install

npm i react-grid-layout-enhancement

Weekly Downloads

19

Version

1.0.10

License

MIT

Unpacked Size

716 kB

Total Files

41

Last publish

Collaborators

  • lsx08