ArraytrueThis is the initial layout of the grid.
The value must be an Array of Object items. Each item must have i, x, y, w and h properties. Please refer to the documentation for GridItem below for more information.
Objectfalse{}This is the initial layouts of the grid per breakpoint if responsive is set to true.
The keys of the Object are breakpoint names and each value is an Array of Object items as defined by layout prop. eg:{ lg:[layout items], md:[layout items] }.
Setting the prop after the creation of the GridLayout has no effect.
See also responsive, breakpoints and cols
Numberfalse12Says how many columns the grid has.
The value should be a natural number.
Numberfalse150Says what is a height of a single row in pixels.
NumberfalseInfinitySays what is a maximal number of rows in the grid.
Arrayfalse[10, 10]Says what are the margins of elements inside the grid.
The value must be a two-element Array of Number. Each value is expressed in pixels. The first element is a margin horizontally, the second element is a vertical margin.
BooleanfalsetrueSays if the grids items are draggable.
BooleanfalsetrueSays if the grids items are resizable.
BooleanfalsefalseSays if the RTL/LTR should be reversed.
BooleanfalsetrueSays if the container height should swells and contracts to fit contents.
BooleanfalsetrueSays if the layout should be compact vertically.
BooleanfalsefalseSays if grid items will move when being dragged over.
BooleanfalsetrueSays if the CSS transition-property: transform; should be used.
BooleanfalsefalseSays if the layout should be responsive to window width
See also responsiveLayouts, breakpoints and cols
ObjectfalseBreakpoints defined for responsive layout, the parameter represents the width of different devices:lg(large), md(medium), sm(small), xs(extra small). Sets widths on wich column number changes
See also responsiveLayouts and cols
ObjectfalseDefines number of columns for each breakpoint
BooleanfalsetrueSays if set the styleCursor option to true. When dragging freezes, setting this value to false may alleviate problems.
This property is not reactive
StringtrueThis is the unique identifier of the item.
NumbertrueSays what is a initial horizontal position of the item (in which column it should be placed).
The value must be a whole number.
NumbertrueSays what is a initial vertical position of the item (in which row it should be placed).
The value must be a whole number.
NumbertrueSays what is a initial width of the item.
The value is a number that is multiplied by colWidth.
NumbertrueSays what is a initial height of the item.
The value is a number that is multiplied by rowHeight.
Numberfalse1Says what is a minimal width of the item. If w will be smaller then minW then w will be set to minW.
The value is a number that is multiplied by colWidth.
Numberfalse1Says what is a minimal hieght of the item. If h will be smaller then minH then h will be set to minH.
The value is a number that is multiplied by rowHeight.
NumberfalseInfinitySays what is a maximal width of the item. If w will be bigger then maxW then w will be set to maxW.
The value is a number that is multiplied by colWidth.
NumberfalseInfinitySays what is a maximal height of the item. If h will be bigger then maxH then h will be set to maxH.
The value is a number that is multiplied by rowHeight
BooleanfalsenullSays if item is draggable.
If default value is null then it's inherited from parent.
BooleanfalsenullSays if item is resizable.
If default value is null then it's inherited from parent.
BooleanfalsefalseSays if item is static (won't be draggable, resizable or moved by other items).
Stringfalse'a, button'Says which elements of the item shouldn't trigger drag event of the item.
The value is css-like selector string.
For more info please refer to ignoreFrom in interact.js docs.
StringfalsenullSays which elements of the item should trigger drag event of the item.
The value is css-like selector string.
If null then one can drag by any (excluding dragIgnoreFrom) element of the item.
For more info please refer to allowFrom in interact.js docs.
Stringfalse'a, button'Says which elements of the item shouldn't trigger resize event of the item.
The value is css-like selector string.
For more info please refer to ignoreFrom in interact.js docs.
BooleanfalsefalseIf 'true', forces the GridItem to preserve its aspect ratio when resizing.