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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -453,7 +453,7 @@ Possible break:
453
453
454
454
## Migrating to v10
455
455
456
-
we now support much richer responsive behavior with `GridStackOptions.responsive` including any breakpoint width:column pairs, or automatic column sizing.
456
+
we now support much richer responsive behavior with `GridStackOptions.columnOpts` including any breakpoint width:column pairs, or automatic column sizing.
457
457
458
458
breaking change:
459
459
* `disableOneColumnMode`, `oneColumnSize` have been removed (thought we temporary convert if you have them). use `{ responsive: breakpoints: [{w:768, c:1}] }` for the same behavior.
Copy file name to clipboardExpand all lines: doc/CHANGES.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ Change log
106
106
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
107
107
108
108
## 10.0.0 (TBD)
109
-
* feat [#2542](https://github.com/gridstack/gridstack.js/pull/2542) we now support much richer responsive behavior with `GridStackOptions.responsive` including any breakpoint width:column pairs, or automatic column sizing.
109
+
* feat [#2542](https://github.com/gridstack/gridstack.js/pull/2542) we now support much richer responsive behavior with `GridStackOptions.columnOpts` including any breakpoint width:column pairs, or automatic column sizing.
110
110
*`disableOneColumnMode`, `oneColumnSize`, `oneColumnModeDomSort` have been removed (see v10 migration doc)
* A value of 0 will make it instant at a cost of re-creating the CSS file at ever window resize event!
96
96
-`children`?: GridStackWidget[] - list of children item to create when calling load() or addGrid()
97
97
-`column` - Integer > 0 (default 12) which can change on the fly with `column(N)` API, or `'auto'` for nested grids to size themselves to the parent grid container (to make sub-items are the same size). See [column](http://gridstackjs.com/demo/column.html) and [nested](http://gridstackjs.com/demo/nested.html)
98
+
-`columnOpts`?:Responsive - describes the responsive nature of the column grid. see `Responsive` interface.
98
99
-`class`?: string - additional class on top of '.grid-stack' (which is required for our CSS) to differentiate this instance
99
100
-`disableDrag` - disallows dragging of widgets (default: `false`).
100
101
-`disableResize` - disallows resizing of widgets (default: `false`).
@@ -122,7 +123,6 @@ GridStack will add it to the `<style>` elements it creates.
122
123
-`resizable` - allows to override resizable options. (default: `{handles: 'se'}`). `handles` can be any combo of `n,ne,e,se,s,sw,w,nw` or `all`.
123
124
-`removable` - if `true` widgets could be removed by dragging outside of the grid. It could also be a selector string, in this case widgets will be removed by dropping them there (default: `false`) See [example](http://gridstackjs.com/demo/two.html)
124
125
-`removeTimeout` - time in milliseconds before widget is being removed while dragging outside of the grid. (default: `2000`)
125
-
-`responsive` - describes the responsive nature of the grid. see `Responsive` interface.
126
126
-`row` - fix grid number of rows. This is a shortcut of writing `minRow:N, maxRow:N`. (default `0` no constrain)
127
127
-`rtl` - if `true` turns grid to RTL. Possible values are `true`, `false`, `'auto'` (default: `'auto'`) See [example](https://gridstackjs.com/demo/right-to-left(rtl).html)
128
128
-`staticGrid` - removes drag|drop|resize (default `false`). If `true` widgets are not movable/resizable by the user, but code can still move and oneColumnMode will still work. You can use the smaller gridstack-static.js lib. A CSS class `grid-stack-static` is also added to the container.
@@ -134,9 +134,9 @@ v10.x supports a much richer responsive behavior, you can have breakpoints of wi
134
134
-`columnMax`?: number - maximum number of columns allowed (default: 12). Note: make sure to have correct CSS to support this.
135
135
-`layout`?: ColumnOptions - global re-layout mode when changing columns
136
136
-`breakpointForWindow`?: boolean - specify if breakpoints are for window size or grid size (default:false = grid)
137
-
-`breakpoints`?: ResponsiveBreakpoint[] - explicit width:column breakpoints instead of automatic 'columnWidth'. Note: make sure to have correct CSS to support this.
137
+
-`breakpoints`?: Breakpoint[] - explicit width:column breakpoints instead of automatic 'columnWidth'. Note: make sure to have correct CSS to support this.
138
138
139
-
#### ResponsiveBreakpoint
139
+
#### Breakpoint
140
140
-`w`?: number - width
141
141
-`c`: number - column
142
142
-`layout`?: ColumnOptions - re-layout mode if different from global one
0 commit comments