Skip to content

Releases: gridstack/gridstack.js

v8.1.0

07 May 01:04
ac7a2ce

Choose a tag to compare

  • break: remove GridStackOptions.minWidth obsolete since 5.1, use oneColumnSize instead
  • optimize: CSS files now even 25% smaller (after being halfed in 8.0.0) by removing .grid-stack prefix for anything already gs based, and 3 digit rounding.
  • fix: #2275 setupDragIn() signature tweaks (HTMLElement | Document)
  • feat: #2205 added GridStackOptions.draggable.cancel for list of selectors that should prevent item dragging

v8.0.1

30 Apr 01:01
46148bd

Choose a tag to compare

  • feat: #2275 setupDragIn() now can take an array of elements (in addition to selector string) and optional parent root (for shadow DOM support)
  • fix: #2234 Utils.getElements('1') (called by removeWidget() and others) now checks for digit 'selector' (becomes an id).
  • fix: #2213 destroy() now removes event handlers too
  • feat: #2292 ne nw resize handle
  • break: (meant to be in v8) removed GridStackOptions.dragInOptions since setupDragIn()has it replaced since 4.0

v8.0.0

29 Apr 15:47
be86520

Choose a tag to compare

  • package is now ES2020 (TS exported files), webpack all.js still umd (better than commonjs for browsers), still have es5/ files unchanged (for now)
  • optimize #2243 removed gs-min|max_w|h attribute generated in CSS or written out as they are never used for rendering, only for initial load. This reduce our column/row CSS in half!
  • optimize: removed gs-w='1' and gs-h='1' dom attribute writing since we already have min-width/min-height set, no need to set more attributes.
  • optimize: remove 'ui-draggable' and 'ui-resizable' since wasn't used in CSS and we have the -disabled version when off (so we can use not(xyz-disabled)).
  • add: GridStack.saveCB global callback for each item during save so app can insert any custom data before serializing it. save() can now be passed optional callback
  • move: GridStack.addRemoveCB is now global instead of grid option. load() can still be passed different optional callback
  • fix: addGrid() to handle passing an existing initialized grid already
  • break: GridStackOptions.subGrid -> GridStackOptions.subGridOpts. We now have GridStackWidget.subGridOpts vs GridStackNode.subGrid (subclass) rather than try to merge the two at runtime since very different types...
  • tons of improvements for Angular wrapper - now shipped!

v7.3.0

02 Apr 00:52
117d851

Choose a tag to compare

  • feat #2229 support nonce for CSP. Thank you @jedwards1211
  • feat #2251 support nested grids with Angular component demo. Thank you @ringodotnl for supporting this.
  • fix #2206 load() with collision fix
  • fix #2232 autoPosition bug loading from DOM

v7.2.3

02 Feb 20:52
c144536

Choose a tag to compare

  • fix addWidget() to handle passing just {el} which was needed for Angular HMTL template demo
  • add opts.draggable.scroll back to disable scrolling. Thank you @VincentMolinie

v7.2.2

16 Jan 20:38
49e409e

Choose a tag to compare

  • fix #2171 save() nested grid has extra nested children & options
  • regression for fix #2110: nested grids lost their styles causing wrong rendering when dragging to create sub nesting

v7.2.1

14 Jan 22:11
b1a0ebe

Choose a tag to compare

  • fix #2162 removing item from a grid (into another) will now call change if anything was also modified during the remove
  • fix #2110 custom GridStackOptions.itemClass now works when dragging from outside

v7.2.0

08 Jan 02:13
6836f07

Choose a tag to compare

  • fix #1936 some styles left behind after a drag
  • remove #1842 incorrect doc/partial code on widget resizeHandles
  • doc #2033 resizestop is actually correct as we don't animate resize today
  • add - init()|initAll() will now load any listed children (what addGrid() already did)
  • add - GridStackOptions.addRemoveCB which is use by frameworks (eg Angular) to dynamically create their gridItem components instead of regular div with class

v7.1.2

29 Dec 23:59
5dc62fe

Choose a tag to compare

  • fix #939 'prototype' undefined error for dd-gridstack.js
  • add #939 disable/enable are methods now recursive by default
  • add better GridStackEventHandlerCallback spelled out types
  • add We now have support for Angular Component wrappers out of the box included in the build, with docs and demo! Need help to do that for React and Vue.

v7.1.1

13 Nov 15:03
daddce8

Choose a tag to compare

  • fix #939 editable elements focus (regression in v6). Thank you @Gezdy