Releases: gridstack/gridstack.js
Releases · gridstack/gridstack.js
v8.1.0
- break: remove
GridStackOptions.minWidthobsolete since 5.1, useoneColumnSizeinstead - optimize: CSS files now even 25% smaller (after being halfed in 8.0.0) by removing
.grid-stackprefix for anything already gs based, and 3 digit rounding. - fix: #2275
setupDragIn()signature tweaks (HTMLElement | Document) - feat: #2205 added
GridStackOptions.draggable.cancelfor list of selectors that should prevent item dragging
v8.0.1
- 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.dragInOptionssincesetupDragIn()has it replaced since 4.0
v8.0.0
- 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|hattribute 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'andgs-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-disabledversion when off (so we can usenot(xyz-disabled)). - add:
GridStack.saveCBglobal 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.addRemoveCBis 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 haveGridStackWidget.subGridOptsvsGridStackNode.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
- 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
autoPositionbug loading from DOM
v7.2.3
- fix
addWidget()to handle passing just {el} which was needed for Angular HMTL template demo - add
opts.draggable.scrollback to disable scrolling. Thank you @VincentMolinie
v7.2.2
v7.2.1
v7.2.0
- fix #1936 some styles left behind after a drag
- remove #1842 incorrect doc/partial code on widget resizeHandles
- doc #2033
resizestopis actually correct as we don't animate resize today - add -
init()|initAll()will now load any listed children (whataddGrid()already did) - add -
GridStackOptions.addRemoveCBwhich is use by frameworks (eg Angular) to dynamically create their gridItem components instead of regular div with class
v7.1.2
- fix #939 'prototype' undefined error for dd-gridstack.js
- add #939 disable/enable are methods now recursive by default
- add better
GridStackEventHandlerCallbackspelled 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.