Skip to content

Releases: gridstack/gridstack.js

v1.1.0

29 Feb 18:06
f75e9f8
Compare
Choose a tag to compare
  • add minRow and row grid options (which set minRow=maxRow=N) 1172 - thanks @RadoiAndrei
  • fix 1166 resize not taking margin height into account - thanks @awjae
  • fix 1155 maxRow now 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

24 Feb 07:33
5d15a36
Compare
Choose a tag to compare
  • Breaking Change: #1084 jquery was removed from the API and dependencies (initialize differently, and methods take/return GridStack or HTMLElement instead of JQuery), so your code will need to change.
    See Migrating to v1.0.0
  • setColumn(N) is now column(N) (matches other set/get methods) and getColumn() 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

17 Feb 15:20
5defb90
Compare
Choose a tag to compare
  • fix #540 WebComponent support: CSS file now insert before grid instead of 'head'
  • fix #1143 nested grids with different acceptWidgets class
  • fix #1142 add/remove widget will also trigger change events when it should.
  • optimized change callback to save original x,y,w,h values and only call those that changed #1148
  • delete bower since dead for a while now

v0.6.3

05 Feb 21:06
81a0c52
Compare
Choose a tag to compare
  • fix #1132 oneColumnMode missing CSS layout in default styles
  • del oneColumnModeClass / .grid-stack-one-column-mode and associated code. If you depended on this, use class .grid-stack-1 instead since it is 1 column layout anyway #1134

v0.6.2

04 Feb 02:24
2876398
Compare
Choose a tag to compare
  • add oneColumnModeDomSort true|false to let you specify a custom layout (use dom order instead of x,y) for oneColumnMode setColumn(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

02 Feb 19:20
d920362
Compare
Choose a tag to compare
  • 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

v0.6.0

24 Dec 16:59
10766ec
Compare
Choose a tag to compare
  • add float(val) to set/get the grid float mode, which will relayout #1088
  • add compact() to reclaim any empty space and relayout grid items #1101
  • add options.dragOut to let user drag nested grid items out of a parent or not (default false) and jQuery UI draggable.containment can now be specified in options. You can now drag&drop between 2 nested grids #1105
  • add % as a valid unit for height #1093. thank you @trevisanweb @aureality @ZoolWay
  • fix callbacks to get either added, removed, change or combination if adding a node require also to change its (x,y) for example. Also you can now call batchUpdate() before calling a bunch of addWidget() and get a single event callback (more efficient). #1096
    NOTE BREAKING: if your code expected to always get change callback to do something you may have to listen to added|removed events as well.
  • removeAll() is now much faster (no relayout) and calls removed event just once with a list #1097
  • setColumn() complete re-write and is no longer "Experimental". We now do a reasonable job at sizing/position the widgets (especially 1 column) and also now cache each column layout so you can go back to say 12 column and not loose original layout. #1098
  • fix addWidget(el) (no data) would not render item at correct location, and overlap item at (0,0) #1098
  • you can now pre-define size of dragable elements from a sidebar using standard data-gs-width and data-gs-height - fix #413, #914, #918, #922, #933 thanks @ermcgrat and others for pointing out code issue.

v0.5.5

28 Nov 00:28
10715f2
Compare
Choose a tag to compare

no code change, just packing issues

  • min files include rev number/license #1075
  • npm package fix to exclude more temporary content #1078
  • removed jquery-ui/* requirements from AMD packing in gridstack.jQueryUI.js as it was causing App compile missing errors now that we include a subset of jquery-ui

v0.5.4

26 Nov 17:47
99bbe16
Compare
Choose a tag to compare
  • fix for griditems with x=0 placement wrong order (introduced by #1017) (#1054).
  • fix cellHeight(val) not working due to style change (introduced by #937) (#1068).
  • add gridstack.poly.js for IE and older browsers, removed core-js lib from samples (<1k vs 85k), and all IE8 mentions (#1061).
  • add jquery-ui.js (and min.js) as minimal subset we need (55k vs 248k), which is now part of gridstack.all.js. Include individual parts if you need your own lib instead of all.js
    (#1064).
  • changed jquery dependency to lowest we can use (>=1.8) (#629).

v0.5.3

20 Nov 16:43
3b11834
Compare
Choose a tag to compare
  • grid options width is now column, height now maxRow, and setGridWidth() now setColumn() to match what they are. Old names are still supported (console warnings). Various fixes for custom # of column and re-wrote entire doc section (#1053).
  • fix widgets not animating when animate: true is used. on every move, styles were recreated-fix should slightly improve gridstack.js speed (#937).
  • fix moving widgets when having multiple grids. jquery-ui workaround (#1043).
  • switch to eslint (#763) thanks @rwstoneback.
  • fix null values addWidget() options (#1042).