You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ To configure the grid with your own options, it is as easy as adding them as the
54
54
'auto_style':true, // Automatically add required element styles at run-time
55
55
'auto_resize':false, // Automatically set col_width/row_height so that max_cols/max_rows fills the screen. Only has effect is max_cols or max_rows is set
56
56
'maintain_ratio':false, // Attempts to maintain aspect ratio based on the colWidth/rowHeight values set in the config
57
+
'prefer_new':false, // When adding new items, will use that items position ahead of existing items
57
58
}
58
59
```
59
60
@@ -96,9 +97,15 @@ The individual items will also throw the following events:
96
97
dragStart() // When the item starts being dragged.
97
98
drag() // When the item moves while dragging.
98
99
dragStop() // When the item stops being dragged.
100
+
dragAny() // When the item starts/stops/is being dragged.
99
101
resizeStart() // When the item starts being resized.
100
102
resize() // When the item is resized.
101
103
resizeStop() // When the item stops being resized.
104
+
resizeAny() // When the item starts/stops/is being resized.
105
+
changeStart() // When the item starts being dragged or resized.
106
+
change() // When the item is dragged or resized.
107
+
changeStop() // When the item stops being dragged or resized.
108
+
changeAny() // When the item starts/stops/is being dragged or resized.
102
109
itemChange() // When either the item's grid size or position is changed.
0 commit comments