Skip to content

Releases: gridstack/gridstack.js

v2.0.0-rc

11 Aug 17:16
be7f0d6
Compare
Choose a tag to compare
v2.0.0-rc Pre-release
Pre-release
  • re-write to native Typescript, removing all JQuery from main code and API (drag&drop plugin still using jqueryui for now)
  • add getGridItems() to return list of HTML grid items
  • add {dragIn | dragInOptions} grid attributes to handle external drag&drop items
  • add save() and load() to serialize grids from JSON, saving all attributes (not just w,h,x,y) #1286
  • add margin to replace verticalMargin which affects both dimensions in code, rather than one in code the other in CSS.
    You can now have perfect square cells (default) #723
  • fix #1299 many columns round-off error

v1.2.0

01 Aug 16:12
c60a11f
Compare
Choose a tag to compare
  • fix #1311 domAttr is not defined
  • adds styleInHead option to allow for selecting older behavior (adding STYLE element to HEAD element instead of parentNode)
  • update jquery to v3.5.1

v1.1.2

17 May 22:10
aed3252
Compare
Choose a tag to compare
  • fix #1229 staticGrid no longer disable oneColumnMode
  • fix #1195 options broken with ember hash helper - thanks @btecu
  • fix #1250 don't remove item from another grid
  • fix #1261 init() clones passed options so second doesn't affect first one
  • fix #1276 addWidget() ignores data attributes

v1.1.1

17 Mar 23:44
ab3b022
Compare
Choose a tag to compare
  • fix #1187 IE support for CustomEvent polyfill - thanks @phil-blais
  • fix #1204 destroy drag&drop when removing node(s) instead of just disabling it.
  • fix #1181 Locked widgets are still moveable by other widgets.
  • fix #1217 If I set cellHeight to some vh, only first grid will take vh, rest will use px
  • include SASS source files to npm package again #1193

v1.1.0

29 Feb 18:06
f75e9f8
Compare
Choose a tag to compare
  • add minRow and row grid options (which set minRow=maxRow=N) 1172 - thanks @RadoiAndrei
  • fix 1166 resize not taking margin height into account - thanks @awjae
  • fix 1155 maxRow now limit initial item placement if out of bound, preventing broken drag behavior
  • fix 1171 added event support to call grid.on('added removed change', callback) again even with native events.

v1.0.0

24 Feb 07:33
5d15a36
Compare
Choose a tag to compare
  • Breaking Change: #1084 jquery was removed from the API and dependencies (initialize differently, and methods take/return GridStack or HTMLElement instead of JQuery), so your code will need to change.
    See Migrating to v1.0.0
  • setColumn(N) is now column(N) (matches other set/get methods) and getColumn() to get current column number
  • add grid.on(eventName, callback) / grid.off(eventName) to hide native JQ events mix
  • add grid.getRow() to get the current grid row number

v0.6.4

17 Feb 15:20
5defb90
Compare
Choose a tag to compare
  • fix #540 WebComponent support: CSS file now insert before grid instead of 'head'
  • fix #1143 nested grids with different acceptWidgets class
  • fix #1142 add/remove widget will also trigger change events when it should.
  • optimized change callback to save original x,y,w,h values and only call those that changed #1148
  • delete bower since dead for a while now

v0.6.3

05 Feb 21:06
81a0c52
Compare
Choose a tag to compare
  • fix #1132 oneColumnMode missing CSS layout in default styles
  • del oneColumnModeClass / .grid-stack-one-column-mode and associated code. If you depended on this, use class .grid-stack-1 instead since it is 1 column layout anyway #1134

v0.6.2

04 Feb 02:24
2876398
Compare
Choose a tag to compare
  • add oneColumnModeDomSort true|false to let you specify a custom layout (use dom order instead of x,y) for oneColumnMode setColumn(1) #713
  • fix oneColumnMode to only restore if we auto went to it as window sizes up #1125
  • editing in 1 column (or few columns) does a better job updating higher layout (track before and after and move items accordingly). Tracking item swap would be even better still. #1127

v0.6.1

02 Feb 19:20
d920362
Compare
Choose a tag to compare
  • fix #37 oneColumnMode (<768px by default) now simply calls setColumn(1) and remembers prev columns (so we can restore). This gives us full resize/re-order of items capabilities rather than a locked CSS only layout (see prev rev changes). #1120
  • fix responsive.html demo #1121