Repository navigation
Releases
Releases · gridstack/gridstack.js
v14.1.1
- feat: #3463 drop target goes by the grabbed handle (min 10%) rather than the whole widget, so widgets dragged by a header follow the mouse more closely
- feat: a hidden (collapsed) sub-grid works like a folder: the widget goes in (as its first widget) from its middle, and beside it near its edges, so you can insert between collapsed ones
- fix:
ui-droppable-overclass is now removed when the widget leaves or drops - fix: #3198 a widget taller (or wider) than a sub-grid can now be dropped into it
- fix: #3459 React/Vue wrappers: a
changeevent fired mid drag/resize no longer unmounts the item's content (state lost) - thank you nguoimegame - fix: #3447 Dragging upwards does not always work - thank you Gavin
v14.1.0
- feat: #3451, #3452 dragging between grids now goes by how much of the item is over a grid (like jquery-ui's
intersectbefore v6) rather than where the cursor is. Also make it possible to insert above a nested grid even when parent grid overlapps exactly. - feat: #3356 auto-scroll triggers off the cursor nearing an edge (not just widget being clipped)
- fix: #3355 auto-scroll hands off to the outer container when a nested scroll container is pinned
- fix: #2729
cancelselector now matches elements inside a shadow root - fix: #2728 drag helper drifts off the cursor when the page scrolls under a CSS-transformed containing block
- fix: #1959
update()refuses a move that would land on a locked item - fix: #2666 iOS auto-scroll uses visualViewport, and un-bind touch handlers
- fix: #3418 preserve saved layout after cancelling a cross-grid drag- #3418 - thank you sameerdeolalikar
- fix: #2819 item not moved (to alt position) when colliding fails with an object
- fix: #3230 don't recompute w/h unless side can change (rounding errors)
- fix: #2208
cellHeightinvw/vhunits converts straight to pixels drift issue - fix: #3438 fix
mode?: 'list' | 'compact'for h:2 and taller items (for #754) - fix: #3443 Esc restores item (and pushed nodes) dragged out of its grid. Thank you @SinnerAir
v14.0.0
2 BIG changes - new mode?: 'top' | 'float' | 'list' | 'compact' replacing old float:boolean, and cellHeight:'fill' to make rows take entire fixed size grid.
- feat: #754, #2866 new
mode?: 'top' | 'float' | 'list' | 'compact'- items are continuously re-flowed in sequential (row-major) order, like a re-orderable list: dragging, resizing, adding or removing an item re-flows everyone else instead of pushing them down, and dropping an item on another takes its place. See new
list.html demo. - feat: #2583, #787 new
cellHeight: 'fill'- rows divide the container height. See new 'fill' option
cell-height.html demo. - feat: #2627, #2761 emit dragstart/drag/dragstop on sidebar drag-in items
- fix: #3012, #3179 prevent crash when calling update() during change event
- fix: #3226 don't reveal other widgets' resize handles during a resize - thank you dvd233
- fix: #3148 find drag handles inside open shadow roots. See
title_drag.html. - fix: #3188 release the global touch latch when a widget is destroyed mid-touch
- fix: #2953 API update() honors maxRow like dragging does
- fix: #2976 (react, vue): render a drag-in widget that has a component but no id
- fix: #2703 allow dragging from elements nested inside a button/input handle
- fix: #2974 (react, vue): re-render item content after an interactive drag/resize
v13.3.0
- feat: #2781 #2781 mobile: pause to drag/reszie vs scroll behavior
- feat: #3383 added
PrintOptions.breakInsideand.gs-print-avoid-break-afterso section (nested grids) and tables can fragment across pages - fix: #3374 Iframe: use
moveBefore()instead ofappendChild()in_sortDom()so reordering doesn't reload iframes - fix: #934 disable pointer events on iframes while dragging/resizing so fast mouse moves aren't swallowed by the iframe's own document
- fix: #3371 (vue, react): item content vanished after dragging between 2 grids with
acceptWidgets
v13.2.0
- feat: #701 removed
printModeas we support much better printing now that doesn't compromise. - feat: #3362 added
PrintOptions.modefor app custom settings - fix: #3357 (react): drop type assertions on useGridStack add/remove helpers - thank you YOUNGHO8762
- fix: #3358 (react): use wrapper widget types in registry callbacks - thank you YOUNGHO8762
- fix: #3360 better north and west resize handles - thank you Ryan Peterson
v13.1.2
v13.1.1
v13.1.0
v13.0.1
v13.0.0
- NEW: React wrapper: re-did to follow the Angular pattern (drag&Drop between grid doesn't destroy content), events, lazyLoad support, fix memory leak, empty content, etc...
- NEW: Vue wrapper: brand new wrapper follow same pattern as well
- break: #3310 Angular wrapper using component+props (instead of selector+input)
- feat: #662 added grid-lines.html demo (just CSS)
- fix: #3154 Esc key doesn't restore subgrid
- fix: #3231 drag broken in Firefox 147.0.4+ and Chrome 144+ due to
navigator.maxTouchPoints > 0now returning true on desktop (macOS trackpad) - fix: #3291 flicker nested grid demo when dragging between sub-grids
- fix: #3085 Changing rows after init relays out if smaller
- fix: #2823 Scrollbar appears prevents onChange being called
- fix: #2948 dynamically created nested grid disappeared when dragging out
- fix: #3269 cleanup old rtl residue - thank you Daniel Cohen Gindi
- fix: #3270 dragging item from outside doesn't allow swap (weird change is layout especially when you move out as it doesn't restore)
- fix: #2950 Angular: now support signal inputs (ng14.1+) like
name = input<string>()