Releases: gridstack/gridstack.js
Releases · gridstack/gridstack.js
v8.1.2
v8.1.1
v8.1.0
- break: remove
GridStackOptions.minWidth
obsolete since 5.1, useoneColumnSize
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
- 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
sincesetupDragIn()
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|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'
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-disabled
version when off (so we can usenot(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 haveGridStackWidget.subGridOpts
vsGridStackNode.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
autoPosition
bug loading from DOM
v7.2.3
- 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
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
resizestop
is actually correct as we don't animate resize today - add -
init()
|initAll()
will now load any listed children (whataddGrid()
already did) - add -
GridStackOptions.addRemoveCB
which is use by frameworks (eg Angular) to dynamically create their gridItem components instead of regular div with class