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: doc/CHANGES.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,19 @@ Change log
24
24
25
25
## v0.5.2-dev (upcoming changes)
26
26
27
-
- grid options `width` is now `column`, and `height`is now `maxRow` which match what they are. Old names are still supported for now (with console warnings). Also various fixes for custom # of column and re-wrote entire doc section ([#1053](https://github.com/gridstack/gridstack.js/issues/1053)).
27
+
- grid options `width` is now `column`, `height` now `maxRow`, and `setGridWidth()` now `setColumn()` to match what they are. Old names are still supported (console warnings). Various fixes for custom # of column and re-wrote entire doc section ([#1053](https://github.com/gridstack/gridstack.js/issues/1053)).
28
28
- fix widgets not animating when animate: true is used. on every move, styles were recreated-fix should slightly improve gridstack.js speed ([#937](https://github.com/gridstack/gridstack.js/issues/937)).
29
29
- fix moving widgets when having multiple grids. jquery-ui workaround ([#1043](https://github.com/gridstack/gridstack.js/issues/1043)).
30
30
- switch to eslint ([#763](https://github.com/gridstack/gridstack.js/issues/763)).
31
-
- null values to addWidget() exception fix ([#1042](https://github.com/gridstack/gridstack.js/issues/1042)).
- undefined x,y position messes up grid ([#1017](https://github.com/gridstack/gridstack.js/issues/1017)).
35
+
- undefined `x,y` position messes up grid ([#1017](https://github.com/gridstack/gridstack.js/issues/1017)).
36
36
- changed code to 2 spaces.
37
37
- fix minHeight during `onStartMoving()` ([#999](https://github.com/gridstack/gridstack.js/issues/999)).
38
38
- TypeScript definition file now included - no need to include @types/gridstack, easier to update ([#1036](https://github.com/gridstack/gridstack.js/pull/1036)).
39
-
- new addWidget(el, options) to pass object so you don't have to spell 10 params. ([#907](https://github.com/gridstack/gridstack.js/issues/907)).
39
+
- new `addWidget(el, options)` to pass object so you don't have to spell 10 params. ([#907](https://github.com/gridstack/gridstack.js/issues/907)).
40
40
41
41
## v0.5.1 (2019-11-07)
42
42
@@ -57,11 +57,11 @@ Change log
57
57
## v0.4.0 (2018-05-11)
58
58
59
59
- widgets can have their own resize handles. Use `data-gs-resize-handles` element attribute to use. For example, `data-gs-resize-handles="e,w"` will make the particular widget only resize west and east. ([#494](https://github.com/gridstack/gridstack.js/issues/494)).
60
-
- enable sidebar items to be duplicated properly. Pass `helper: 'clone'` in `draggable` options. ([#661](https://github.com/gridstack/gridstack.js/issues/661), ([#396](https://github.com/gridstack/gridstack.js/issues/396), ([#499](https://github.com/gridstack/gridstack.js/issues/499)).
60
+
- enable sidebar items to be duplicated properly. Pass `helper: 'clone'` in `draggable` options. ([#661](https://github.com/gridstack/gridstack.js/issues/661), [#396](https://github.com/gridstack/gridstack.js/issues/396), [#499](https://github.com/gridstack/gridstack.js/issues/499)).
- preserve inline styles when moving/cloning items (thanks [@silverwind](https://github.com/silverwind))
63
63
- fix bug causing heights not to get set ([#744](https://github.com/gridstack/gridstack.js/issues/744))
64
-
- allow grid to have min-height, fixes ([#628](https://github.com/gridstack/gridstack.js/issues/628)) (thanks [@adumesny](https://github.com/adumesny))
64
+
- allow grid to have min-height, fixes ([#628](https://github.com/gridstack/gridstack.js/issues/628)) thanks [@adumesny](https://github.com/adumesny)
65
65
- widget x and y are now ints (thanks [@DonnchaC](https://github.com/donnchac))
66
66
- allow all droppable options (thanks [@vigor-vlad](https://github.com/vigor-vlad))
67
67
- properly track mouse position in `getCellFromPixel` (thanks [@aletorrado](https://github.com/aletorrado))
@@ -74,7 +74,7 @@ Change log
74
74
- prevent extra checks for removing widget when dragging off grid.
75
75
- trigger `added` when a widget is added via dropping from one grid to another.
76
76
- trigger `removed` when a widget is removed via dropping from one grid to another.
77
-
- trigger `removed` when a widget is removed via dropping on a removable zone ([#607](https://github.com/gridstack/gridstack.js/issues/607) and [#550])(https://github.com/gridstack/gridstack.js/issues/550)).
77
+
- trigger `removed` when a widget is removed via dropping on a removable zone ([#607](https://github.com/gridstack/gridstack.js/issues/607) and [#550](https://github.com/gridstack/gridstack.js/issues/550)).
78
78
- trigger custom event for `resizestop` called `gsresizestop` ([#577](https://github.com/gridstack/gridstack.js/issues/577) and [#398](https://github.com/gridstack/gridstack.js/issues/398)).
79
79
- prevent dragging/resizing in `oneColumnMode` ([#593](https://github.com/gridstack/gridstack.js/issues/593)).
80
80
- add `oneColumnModeClass` option to grid.
@@ -99,7 +99,7 @@ Change log
99
99
-`cellHeight` and `verticalMargin` can now be string (e.g. '3em', '20px') (Thanks to @jlowcs).
-[update(el, x, y, width, height)](#updateel-x-y-width-height)
53
53
-[verticalMargin()](#verticalmargin)
@@ -436,11 +436,11 @@ Toggle the grid animation state. Toggles the `grid-stack-animate` class.
436
436
437
437
-`doAnimate` - if `true` the grid will animate.
438
438
439
-
### setGridWidth(gridWidth, doNotPropagate)
439
+
### setColumn(column, doNotPropagate)
440
440
441
441
(Experimental) Modify number of columns in the grid. Will attempt to update existing widgets to conform to new number of columns. Requires `gridstack-extra.css` or `gridstack-extra.min.css`.
442
442
443
-
-`gridWidth` - Integer between 1 and 12.
443
+
-`column` - Integer between 1 and 12.
444
444
-`doNotPropagate` - if true existing widgets will not be updated.
0 commit comments