Releases: gridstack/gridstack.js
Releases · gridstack/gridstack.js
v9.0.0
- feat #404 added
GridStackOptions.fitToContentandGridStackWidget.fitToContentto make gridItems size themselves to their content (no scroll bar), callingGridStack.resizeToContent(el)whenever the grid or item is resized. - also added new
'resizecontent'event, andresizeToContentCBandresizeToContentParentvars. - fix #2406 inf loop when autoPosition after loading into 1 column, then 2.
v8.4.0
- feat #2378 attribute
DDRemoveOpt.declineto deny the removal of a specific class. - fix: dragging onto trash now calls removeWidget() and therefore
GridStack.addRemoveCB(for component cleanup) - feat:
load()support re-order loading without explicit coordinates (autoPositionor missingx,y) uses passed order.
v8.3.0
v8.2.3
v8.2.1
- fix: make sure
removeNode()uses internal _id (unique) and not node itself (since we clone those often) - fix: after calling
addRemoveCBmake sure we don't makeWidget() (incorrectly) a second time - break:
GridStackWidget.idis now string only (used to be numberOrString) as it causes usage to have to check and cast
v8.2.0
v8.1.2
v8.1.1
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