Skip to content

Releases: gridstack/gridstack.js

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).

v0.5.2

13 Nov 21:58
fef7f6f
Compare
Choose a tag to compare
  • 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

07 Nov 19:53
ef934a0
Compare
Choose a tag to compare
  • just an npm package reduction size (from 672k to 324k) and some API doc fixes

v0.5.0

06 Nov 19:11
50ab44e
Compare
Choose a tag to compare
  • 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

11 May 15:01
7b6df18
Compare
Choose a tag to compare
  • 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' in draggable 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)

v0.3.0

22 Apr 01:02
Compare
Choose a tag to compare
  • remove placeholder when dragging widget below grid (already worked when dragging left, above, and to the right of grid).
  • prevent extra checks for removing widget when dragging off grid.
  • trigger added when a widget is added via dropping from one grid to another.
  • trigger removed when a widget is removed via dropping from one grid to another.
  • trigger removed when a widget is removed via dropping on a removable zone (#607 and [#550])(#550)).
  • trigger custom event for resizestop called gsresizestop (#577 and #398).
  • prevent dragging/resizing in oneColumnMode (#593).
  • add oneColumnModeClass option to grid.
  • remove 768px CSS styles, moved to grid-stack-one-column-mode class.
  • add max-width override on grid-stck-one-column-mode (#462).
  • add internal functionisNodeChangedPosition, minor optimization to move/drag.
  • drag'n'drop plugin system. Move jQuery UI dependencies to separate plugin file.

v0.2.6

17 Aug 16:31
Compare
Choose a tag to compare
  • update requirements to the latest versions of jQuery (v3.1.0+) and jquery-ui (v1.12.0+).
  • fix jQuery size() (#486).
  • update destroy([detachGrid]) call (#422).
  • don't mutate options when calling draggable and resizable. (#505).
  • update _notify to allow detach (#411).
  • fix code that checks for jquery-ui (#481).
  • fix cellWidth calculation on empty grid

v0.2.5

03 Mar 04:43
Compare
Choose a tag to compare
  • update names to respect js naming convention.
  • cellHeight and verticalMargin can now be string (e.g. '3em', '20px') (Thanks to @jlowcs).
  • add maxWidth/maxHeight methods.
  • add enableMove/enableResize methods.
  • fix window resize issue #331.
  • add options disableDrag and disableResize.
  • fix batchUpdate/commit (Thank to @radiolips)
  • remove dependency of FontAwesome
  • RTL support
  • 'auto' value for cellHeight option
  • fix setStatic method
  • add setAnimation method to API
  • add setGridWidth method (#227)
  • add removable/removeTimeout (experimental)
  • add detachGrid parameter to destroy method (#216) (thanks @jhpedemonte)
  • add useOffset parameter to getCellFromPixel method (#237)
  • add minWidth, maxWidth, minHeight, maxHeight, id parameters to addWidget (#188)
  • add added and removed events for when a widget is added or removed, respectively. (#54)
  • add acceptWidgets parameter. Widgets can now be draggable between grids or from outside (experimental)

v0.2.4

15 Feb 17:33
Compare
Choose a tag to compare
  • fix closure compiler/linter warnings
  • add static_grid option.
  • add min_width/min_height methods (Thanks to @cvillemure)
  • add destroy method (Thanks to @zspitzer)
  • add placeholder_text option (Thanks to @slauyama)
  • add handle_class option.
  • add make_widget method.
  • lodash v 4.x support (Thanks to Andy Robbins)

v0.2.3

23 Jun 07:10
Compare
Choose a tag to compare
  • gridstack-extra.css
  • add support of lodash.js
  • add is_area_empty method
  • nested grids
  • add batch_update/commit methods
  • add update method
  • allow to override resizable/draggable options
  • add disable/enable methods
  • add get_cell_from_pixel (thanks to @juchi)
  • AMD support
  • fix nodes sorting
  • improved touch devices support
  • add always_show_resize_handle option
  • minor fixes and improvements