Releases: gridstack/gridstack.js
Releases · gridstack/gridstack.js
v0.6.2
- add
oneColumnModeDomSort
true|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
v0.6.0
- 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 UIdraggable.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 callbatchUpdate()
before calling a bunch ofaddWidget()
and get a single event callback (more efficient). #1096
NOTE BREAKING: if your code expected to always getchange
callback to do something you may have to listen toadded|removed
events as well. removeAll()
is now much faster (no relayout) and callsremoved
event just once with a list #1097setColumn()
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
anddata-gs-height
- fix #413, #914, #918, #922, #933 thanks @ermcgrat and others for pointing out code issue.
v0.5.5
v0.5.4
- 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, removedcore-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 ofgridstack.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
- grid options
width
is nowcolumn
,height
nowmaxRow
, andsetGridWidth()
nowsetColumn()
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).
v0.5.2
- undefined x,y position messes up grid (#1017).
- changed code to 2 spaces.
- fix minHeight during
onStartMoving()
(#999). - TypeScript definition file now included - no need to include @types/gridstack, easier to update (#1036).
- new
addWidget(el, options)
to pass object so you don't have to spell 10 params. (#907).
v0.5.1
v0.5.0
- emit
dropped
event when a widget is dropped from one grid into another (#823). - don't throw error if no bounding scroll element is found (#891).
- don't push locked widgets even if they are at the top of the grid (#882).
- RequireJS and CommonJS now export on the
exports
module fix (#643). - automatically scroll page when widget is moving beyond viewport (#827).
- removed lodash dependencies (#693).
- don't overwrite globals jQuery when in a modular environment (#974).
- removed z-index from
.grid-stack-item-content
causing child modal dialog clipping (#984). - convert project to use yarn (#983).
v0.4.0
- widgets can have their own resize handles. Use
data-gs-resize-handles
element attribute to use. For example,data-gs-resize-handles="e,w"
will make the particular widget only resize west and east. (#494). - enable sidebar items to be duplicated properly. Pass
helper: 'clone'
indraggable
options. (#661, (#396, (#499). - fix
staticGrid
grid option (#743) - preserve inline styles when moving/cloning items (thanks @silverwind)
- fix bug causing heights not to get set (#744)
- allow grid to have min-height, fixes (#628) (thanks @adumesny)
- widget x and y are now ints (thanks @DonnchaC)
- allow all droppable options (thanks @vigor-vlad)
- properly track mouse position in
getCellFromPixel
(thanks @aletorrado) - remove instance of
!important
(thanks @krilllind) - scroll when moving widget up or down out of viewport (#827)