NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
TypeScript/JS lib for dashboard layout and creation, responsive, mobile support, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)
Latest stable
14.1.1
Last release 11 days ago
17 Nov 2026
Release timing varies
gaps range from 9 days to 4 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
143 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
fix https://github.com/gridstack/gridstack.js/issues/2349 grid NoMove vs item NoMove support fix https://github.com/gridstack/gridstack.js/issues/2352
fix https://github.com/gridstack/gridstack.js/issues/2349 grid NoMove vs item NoMove support fix https://github.com/gridstack/gridstack.js/issues/2352 .ui-draggable-dragging z-index for modal dialogs fix https://github.com/gridstack/gridstack.js/issues/2357 NaN inf loop when using cellHeight rem/em fix https://github.com/gridstack/gridstack.js/issues/2354 max-w cloning issue fix
fix #2349 grid NoMove vs item NoMove support
fix #2352 .ui-draggable-dragging z-index for modal dialogs
fix #2357 NaN inf loop when using cellHeight rem/em
fix #2354 max-w cloning issue fix
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fix: make sure removeNode() uses internal _id (unique) and not node itself (since we clone those often)
removeNode() uses internal _id (unique) and not node itself (since we clone those often)addRemoveCB make sure we don't makeWidget() (incorrectly) a second timeGridStackWidget.id is now string only (used to be numberOrString) as it causes usage to have to check and castfeat: makeWidget() now take optional GridStackWidget for sizing
makeWidget() now take optional GridStackWidget for sizingGridStack.saveCB is call in removeWidget()* #2323 module for Angular wrapper
fix: #2314 fix issue with having min-height/width instead of height/width for gs-h|x="1"
.gs-# > .grid-stack-item instead of .grid-stack-# > .grid-stack-item)break: remove GridStackOptions.minWidth obsolete since 5.1, use oneColumnSize instead
GridStackOptions.minWidth obsolete since 5.1, use oneColumnSize instead.grid-stack prefix for anything already gs based, and 3 digit rounding.setupDragIn() signature tweaks (HTMLElement | Document)GridStackOptions.draggable.cancel for list of selectors that should prevent item draggingfeat: #2275 setupDragIn() now can take an array of elements (in addition to selector string) and optional parent root (for shadow DOM support)
setupDragIn() now can take an array of elements (in addition to selector string) and optional parent root (for shadow DOM support)Utils.getElements('1') (called by removeWidget() and others) now checks for digit 'selector' (becomes an id).destroy() now removes event handlers tooGridStackOptions.dragInOptions since setupDragIn()has it replaced since 4.0package is now ES2020 (TS exported files), webpack all.js still umd (better than commonjs for browsers), still have es5/ files unchanged (for now)
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!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.'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)).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 callbackGridStack.addRemoveCB is now global instead of grid option. load() can still be passed different optional callbackGridStackOptions.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...feat #2229 support nonce for CSP. Thank you @jedwards1211
load() with collision fixautoPosition bug loading from DOMfeat #2229 support nonce for CSP. Thank you @jedwards1211
feat: support nested grids with Angular component demo. Thank you R. Blanken for supporting this.
fix #2206 load() with collision fix
fix #2232 autoPosition bug loading from DOM
fix addWidget() to handle passing just {el} which was needed for Angular HMTL template demo
addWidget() to handle passing just {el} which was needed for Angular HMTL template demoopts.draggable.scroll back to disable scrolling. Thank you @VincentMoliniefix #2171 save() nested grid has extra nested children & options
save() nested grid has extra nested children & optionsfix #2162 removing item from a grid (into another) will now call change if anything was also modified during the remove
fix #1936 some styles left behind after a drag
resizestop is actually correct as we don't animate resize todayinit()|initAll() will now load any listed children (what addGrid() already did)GridStackOptions.addRemoveCB which is use by frameworks (eg Angular) to dynamically create their gridItem components instead of regular div with classfix #939 'prototype' undefined error for dd-gridstack.js
GridStackEventHandlerCallback spelled out typesfix #939 editable elements focus (regression in v6). Thank you @Gezdy
back to MIT license in package.json
back to MIT license in package.json
add GridStackEngine.findEmptyPosition()
fix #2081 removeWidget() after it's gone from DOM
fix #1985 addWidget() or DOM read in single column mode will not adjust to multi column mode
fix #1975 oneColumnModeDomSort not respected when loading in 1 column
fixed #2073 SSR (server side rendering) isTouch issue (introduced in v6)
fix #2073 SSR (server side rendering) isTouch issue (regression in v6)
fix - removing last item delete sub-grid that are not auto-generated (nested.html vs nested_advanced.html)
add #1009 Create sub-grids on the fly, by dragging items completely over others (nest) vs partially (push) using new flag GridStackOptions.subGridDyna
GridStackOptions.subGridDynamic=true.
Thank you [StephanP] for sponsoring it.<br>
See advance NestedDDDragOpt.pause (used for creating nested grids on the fly based on gesture).fixed #2055 maxRow=1 resize outside (broke in 6.0.1)
fix #2055 maxRow=1 resize outside (broke in 6.0.1)
fix #2054 Can't enter text in textarea/input (broke in v6)
fixed #2034 removeWidget() breaking resize handle feedback
fix #2034 removeWidget() breaking resize handle feedback
fix #2043 when swapping shapes in maxRow grid, make sure we still check for 50% coverage
fixed float(val) to set on grid and engine, so save() will read it.
float(val) to set on grid and engine, so save() will read it.fix float(val) to set on grid and engine, so save() will read it.
fix #2018 mouseover and React different behavior
fix getting nested grid resize handles while dragging child
we now have native support for drag&drop on dekstop and mobile out of the box, no external lib needed and more reliable across browsers (mouse event a
we now have native support for drag&drop on dekstop and mobile out of the box, no external lib needed and more reliable across browsers (mouse event and touch)
draggable=true based code to simple Mouse Events and Touch mobile support for drag&Drop.alwaysShowResizeHandle now support 'mobile' which is the default, making it much easier (see doc)commit() to be batchUpdate(false) to make it easier to turn batch on/off. updated doc. old API remains for nowfix v5.1.0 regression #1973 DnD Snap to Animation
add GridStack.registerEngine() to let user use their own custom layout engine subclass. Thank you [Thomas] for sponsoring it.
GridStack.registerEngine() to let user use their own custom layout engine subclass. Thank you [Thomas] for sponsoring it.minWidth is now oneColumnSize to make it clearer, but old field will still work (JS only) for a whileadd #992 support dragging into and out of nested grids from parents! Thank you @arclogos132 for sponsoring it.
column:'auto' option to size nested grids to their parent grid item column count, keeping items the same size inside and outside. Thank you @arclogos132 for also sponsoring it.fix #1901 error introduced for #1785 when re-loading with fewer objects
fix #1901 error introduced for #1785 when re-loading with fewer objects
add #1887 support for IE (new es5 folder) by @SmileLifeIven
fix #1868 prevent swap during resize
you can now swap items of different width if they are the same row/height. Thanks to spektrummedia for sponsoring it.
fix #1817 Enable passing of DragEvent to gridstack dropped event. Thanks @onepartsam
fix #1784 removable:true working by itself (without needing acceptWidgets:true)
removable:true working by itself (without needing acceptWidgets:true)save(false) will no longer have .content field (removed existing one if present)save(false, false) now correctly saves nested gridssave(false, true) followed by enable() throws error. we now have new Utils.cloneDeep()fix for website with JQ droppable('destroy') giving error
droppable('destroy') giving errorfix #1760 removable:true working again (broke in 4.x)
removable:true working again (broke in 4.x)staticGrid(false) will now enable drag in behavior (if set)locked item can be user moved/resized again, just not pushed by other nodes (broke in 1.1.1)destroy(false) can now re-init properly (doesn't force static grid)Utils.getScrollParent() -> getScrollElement() rename
Utils.getScrollParent() -> getScrollElement() renamefix #1684 #1550 mac Safari H5 draggable broken in 4.0.1. Thanks @wurambo
fix #1700 JQ nested grid drag fix broken in 4.0.3 (but much older underlying issue)
fix #1704 scrollbar fix broken in 4.x
fix #1704 scrollbar fix broken in 4.x
fix #1655 addWidget() while in 1 column now remembers original wanted width
add #1727 addWidget() now supports nested grids like init/addGrid() does.
fix #219 fixing another 6 years old request we now automatically insert extra rows when dragging an item at the bottom below others to make it easier
row / maxRow broken in 4.xgridstack-h5.js | gridstack-jq.js | gridstack-static.jsfix #1693 load after init() broken in 4.x
fix #1679 Resizable: {handles:'w/sw'} work again in 4.x
fix #1679 Resizable: {handles:'w/sw'} broken in 4.x
fix #1658 enableMove(T/F) not working correctly
fix helper: myFunction now working for H5 case for dragInOptions & setupDragIn() broken in 3.x
fix prevent addGrid() from creating nested div grid if container already is a '.grid-stack' div
fix #1661 serialization of nested grid
fix #1669 JQ resize broken in 4.x
fix #1661 serialization of nested grid
fix #149 #1094 #1605 #1534 re-write of the collision code - fixing 6 years old most requested request
float:false (top gravity) as it feels more natural. Could add Alt key for swap vs push behavior later.acceptWidgets case using dropout event) or shape is outside (re-using same method) and re-insert on cursor enter (since we only get dropover event). Should not be possible to have 2 placeholders which confuses the grids.column(n) now resizes cellHeight:'auto' to keep squaredrag | resize events while dragging. Thanks @MrCorbaGridStack.setupDragIn() so user can update external draggable after the grid has been createdbig re-write on how cellHeight() works. you can now call it at any time (not just grid init options) including switching to 'auto' or other modes on t
cellHeight() works. you can now call it at any time (not just grid init options) including switching to 'auto' or other modes on the fly.cellHeight:auto now keeps cell square as window resizes (regressing from 2.x TS conversion). Utils.throttle() works better too (guaranteed to be called last event)cellHeight:initial which makes the cell squares initially, but doesn't change as windows resizes (better performance)cellHeightThrottle (100ms) to control throttle of auto sizing triggerscellHeight:auto loading in 1 column. Now detect we load at 1 column and size accordingly (default 'auto' could make big 700x700 cells, so explicit px might still be wanted)fix 1413 website & lib works on mobile. We now compile the latest v1.0.8 jquery.ui.touch-punch into the JQ version (only 2k) so mobile devices (androi
jquery.ui.touch-punch
into the JQ version (only 2k) so mobile devices (android, iphone, ipad, ms surface, etc...) are supported out of the box.
HTML5 version will require re-write to plain mousemove & mobile touchmove instead of drag events in a future release.fix 1572 column: N option now sets CSS class so you don't have to
column: N option now sets CSS class so you don't have tocellHeight() was not updating CSS correctlyfix 1572 column: N option now sets CSS class
fix 1571 don't allow drop when grid is full
fix 1570 easier to drag out/in from below
fix 1579 cellHeight() not updating CSS correctly
fix 1581 H5 draggable by actual div handle rather than entire item (let content respond to drag as well)
fix 1557 no-drop cursor on windows when dragging within a default grid (no external drag in)
fix 1557 fix no-drop cursor on windows when dragging within a default grid (no external drag in)
fix 1541 fix Safari H5 delay when dropping items
fix #1540 Safari H5 drag&drop now works (some issue remain #1550 and #1541)
batchUpdate() around grid init to make sure gs-y attributes are respected.disableMove() correctly prevents drag later (remove events and draggable attribute)fix #1419 dragging into a fixed row grid works better (check if it will fit, else try to append, else won't insert) possible BREAK (unlikely you use e
(fixed bundle size in 3.1.1)
canBePlacedWithRespectToHeight() -> willItFit() like grid methodmaxW does not work as intended with resizable handle "w"gs-xyz attributes)Nothing published for this version
fix 1517 force typescript 3.6 as 3.7+ has breaking change forcing apps to be at least 3.7 (we only used one tiny feature in newest TS, not worth the i…
addGrid(parent, opts) to create a grid and load children instead of init() + load(), which is used by load() to supports nested grids creation.
see nested.html demo.save() will now work on nested grids, recursively saving info. added flag to also allow saving the current grid options + children
(needed for nested grids) so you can now call new adddGrid() to re-create everything from JSON.movable()/resizable() on locked items error. thanks @infimethe big news is we finally have a native HTML5 drag&drop plugin (no jquery/query-ui, entire bundle now at 1/3 the size 64k), in addition to legacy jq
GridStackOptions.itemClass. thanks @pablosichertload() into 1 column mode doesn't resize back to 12 correctlyupdate(el, opts) re-write to take all GridStackWidget options (not just x,y,width,height) and do everything efficiently.
Hiding locked(), move(), resize(), minWidth(), etc... as they just simply call update() which does all the constrain now as well!ddPlugin grid option as we only have one drag&drop plugin at runtime, which is defined by the include you use (HTML5 vs jquery vs none)data-gs-min-width is now gs-min-w. We removed 'data-' from all attributes, and shorten 'width|height' to just 'w|h' to require less typing and more efficient (2k saved in .js alone!) #1491 #1492GridStackWidget used in most API width|height|minWidth|minHeight|maxWidth|maxHeight are now shorter w|h|minW|minH|maxW|maxH as well #1493add margin option now support multi values CSS format '5px 10px 0 20px' or '5em 10em'
margin option now support multi values CSS format '5px 10px 0 20px' or '5em 10em'data-gs-static-grid attributeclass="ui-draggable-disabled ui-resizable-disabled" have been added back to static grid items, so existing CSS rule to style continue working #1435GridStackElement handle more string formats)marginTop (or any 4 sides) caused resize to break. Marking legacy as I recommend using new margin format. Thanks @deadivan for suggested fix.add margin option now support multi values CSS format '5px 10px 0 20px' or '5em 10em'
add data-gs-static-grid attribute
fix 1435 class="ui-draggable-disabled ui-resizable-disabled" have been added back to static grid items, so existing CSS rule to style continue working
fix 1439 getting DOM element by id with number works (api that uses GridStackElement handle more string formats)
fix 1442 setting marginTop (or any 4 sides) to cause resize to break. Thanks @deadivan for suggested fix.
fix grid static: true to no longer add any drag&drop (even disabled) which should speed things up, and setStatic(T/F) will now correctly add it back/d
static: true to no longer add any drag&drop (even disabled) which should speed things up, and setStatic(T/F) will now correctly add it back/delete for items that need it only.
Also fixed JQ draggable warning if not initialized first #858addWidget(opt) now handles just passing a GridStackWidget which creates the default divs, simplifying your code. Old API still supported.save(saveContent = true) now lets you optionally save the HTML content in the node property, with load() restoring it #1418GridStackWidget.content now lets you add any HTML content when calling load()/save() or addWidget() #1418ColumnOptions to column(n, options) for multiple re-layout options, including 'none' that will preserve the x and width, until out of bound/overlap #1338
including a custom function for you to create the new layout #1332fix animate to not re-create CSS style each time (should be faster too) and made it default now since so much nicer. pass {animate: false} grid option
animate to not re-create CSS style each time (should be faster too) and made it default now since so much nicer. pass {animate: false} grid options if you want instant again #937resizable: { handles: ...} forcing alwaysShowResizeHandle behavior #1373lots of bugs fixes (half are regressions) now that people have switched to 2.0
lots of bugs fixes (half are regressions) now that people have switched to 2.0
minWidth(), minHeight(), maxHeight() to set node value as well #1359GridStackOptions spelling #1359grid.destroy() #1369cellHeight '6rem' '6em' not working #1356re-write to native Typescript, removing all JQuery from main code and API (drag&drop plugin still using jqueryui for now)
getGridItems() to return list of HTML grid items{dragIn | dragInOptions} grid attributes to handle external drag&drop itemssave() and load() to serialize grids from JSON, saving all attributes (not just w,h,x,y) #1286margin 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) #723removeWidget() to have quiet mode (no callbacks)fixed package.json main and types field, some doc updates. No code change
good re-write of D&D with generic non jquery code. this fixes the following:
good re-write of D&D with generic non jquery code. this fixes the following:
load() APIre-write to native Typescript, removing all JQuery from main code and API (drag&drop plugin still using jqueryui for now)
getGridItems() to return list of HTML grid items{dragIn | dragInOptions} grid attributes to handle external drag&drop itemssave() and load() to serialize grids from JSON, saving all attributes (not just w,h,x,y) #1286margin 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) #723One column per quarter.