Releases: gridstack/gridstack.js
Releases · gridstack/gridstack.js
v2.0.0-rc
- re-write to native Typescript, removing all JQuery from main code and API (drag&drop plugin still using jqueryui for now)
- add
getGridItems()to return list of HTML grid items - add
{dragIn | dragInOptions}grid attributes to handle external drag&drop items - add
save()andload()to serialize grids from JSON, saving all attributes (not just w,h,x,y) #1286 - add
marginto replaceverticalMarginwhich affects both dimensions in code, rather than one in code the other in CSS.
You can now have perfect square cells (default) #723 - fix #1299 many columns round-off error
v1.2.0
v1.1.2
v1.1.1
- fix #1187 IE support for
CustomEventpolyfill - thanks @phil-blais - fix #1204 destroy drag&drop when removing node(s) instead of just disabling it.
- fix #1181 Locked widgets are still moveable by other widgets.
- fix #1217 If I set cellHeight to some vh, only first grid will take vh, rest will use px
- include SASS source files to npm package again #1193
v1.1.0
- add
minRowandrowgrid options (which set minRow=maxRow=N) 1172 - thanks @RadoiAndrei - fix 1166 resize not taking margin height into account - thanks @awjae
- fix 1155
maxRownow limit initial item placement if out of bound, preventing broken drag behavior - fix 1171 added event support to call
grid.on('added removed change', callback)again even with native events.
v1.0.0
- Breaking Change: #1084 jquery was removed from the API and dependencies (initialize differently, and methods take/return
GridStackorHTMLElementinstead ofJQuery), so your code will need to change.
See Migrating to v1.0.0 setColumn(N)is nowcolumn(N)(matches other set/get methods) andgetColumn()to get current column number- add
grid.on(eventName, callback)/grid.off(eventName)to hide native JQ events mix - add
grid.getRow()to get the current grid row number
v0.6.4
- fix #540 WebComponent support: CSS file now insert before grid instead of 'head'
- fix #1143 nested grids with different
acceptWidgetsclass - fix #1142 add/remove widget will also trigger change events when it should.
- optimized
changecallback to save original x,y,w,h values and only call those that changed #1148 - delete
bowersince dead for a while now
v0.6.3
v0.6.2
- add
oneColumnModeDomSorttrue|false to let you specify a custom layout (use dom order instead of x,y) for oneColumnModesetColumn(1)#713 - fix oneColumnMode to only restore if we auto went to it as window sizes up #1125
- editing in 1 column (or few columns) does a better job updating higher layout (track before and after and move items accordingly). Tracking item swap would be even better still. #1127
v0.6.1
- fix #37 oneColumnMode (<768px by default) now simply calls
setColumn(1)and remembers prev columns (so we can restore). This gives us full resize/re-order of items capabilities rather than a locked CSS only layout (see prev rev changes). #1120 - fix responsive.html demo #1121