You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -295,21 +295,19 @@ GridStack.init({
295
295
296
296
## Touch devices support
297
297
298
-
gridstack v3.2 jq version compiles touch support (html5 version does not yet support `touchmove` events. This will be added in a future release), so it works out of the box, no need for anything.
299
-
You **used** to need [jQuery UI Touch Punch](https://github.com/RWAP/jquery-ui-touch-punch) to make jQuery UI Draggable/Resizable
300
-
work on touch-based devices (now distributed as `dist/jq/jquery.ui.touch-punch.js` for reference).
298
+
gridstack v6+ now support mobile out of the box, with the addition of native touch event (along with mouse event) for drag&drop and resize.
299
+
Older versions (3.2+) required the jq version with added touch punch, but doesn't work well with nested grids.
alwaysShowResizeHandle:'mobile'// which defaults to /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
308
306
};
309
307
GridStack.init(options);
310
308
```
311
309
312
-
See [example](http://gridstack.github.io/gridstack.js/demo/mobile.html). If you're still experiencing issues on touch devices please check [#444](https://github.com/gridstack/gridstack.js/issues/444)
310
+
See [example](http://gridstack.github.io/gridstack.js/demo/mobile.html).
See [mobile](http://gridstack.github.io/gridstack.js/demo/mobile.html)
80
+
81
+
78
82
-`animate` - turns animation on to smooth transitions (default: `true`)
79
83
-`auto` - if `false` gridstack will not initialize existing items (default: `true`)
80
84
-`cellHeight`- one cell height (default?: 'auto'). Can be:
@@ -118,7 +122,7 @@ gridstack.js API
118
122
-`oneColumnModeDomSort` - set to `true` if you want oneColumnMode to use the DOM order and ignore x,y from normal multi column layouts during sorting. This enables you to have custom 1 column layout that differ from the rest. (default?: `false`)
119
123
-`placeholderClass` - class for placeholder (default: `'grid-stack-placeholder'`)
-`resizable` - allows to override resizable options. (default: `{autoHide: true, handles: 'se'}`). `handles` can be any combo of `n,ne,e,se,s,sw,w,nw` or `all`.
125
+
-`resizable` - allows to override resizable options. (default: `{handles: 'se'}`). `handles` can be any combo of `n,ne,e,se,s,sw,w,nw` or `all`.
122
126
-`removable` - if `true` widgets could be removed by dragging outside of the grid. It could also be a selector string, in this case widgets will be removed by dropping them there (default: `false`) See [example](http://gridstackjs.com/demo/two.html)
123
127
-`removeTimeout` - time in milliseconds before widget is being removed while dragging outside of the grid. (default: `2000`)
124
128
-`row` - fix grid number of rows. This is a shortcut of writing `minRow:N, maxRow:N`. (default `0` no constrain)
0 commit comments