Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31ecd3b

Browse files
authored
Merge pull request gridstack#2710 from adumesny/master
removed old `dragOut` from doc
2 parents 3b6917a + ca78cab commit 31ecd3b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

doc/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ gridstack.js API
101101
- `disableDrag` - disallows dragging of widgets (default: `false`).
102102
- `disableResize` - disallows resizing of widgets (default: `false`).
103103
- `draggable` - allows to override draggable options - see `DDDragOpt`. (default: `{handle: '.grid-stack-item-content', appendTo: 'body', scroll: true}`)
104-
- `dragOut` to let user drag nested grid items out of a parent or not (default false) See [example](http://gridstackjs.com/demo/nested.html)
105104
- `engineClass` - the type of engine to create (so you can subclass) default to GridStackEngine
106105
- `sizeToContent`: boolean - make gridItems size themselves to their content, calling `resizeToContent(el)` whenever the grid or item is resized.
107106
- `float` - enable floating widgets (default: `false`) See [example](http://gridstackjs.com/demo/float.html)

src/dd-gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class DDGridStack {
7979
dEl.setupDraggable({
8080
...grid.opts.draggable,
8181
...{
82-
// containment: (grid.parentGridItem && !grid.opts.dragOut) ? grid.el.parentElement : (grid.opts.draggable.containment || null),
82+
// containment: (grid.parentGridItem && grid.opts.dragOut === false) ? grid.el.parentElement : (grid.opts.draggable.containment || null),
8383
start: opts.start,
8484
stop: opts.stop,
8585
drag: opts.drag

0 commit comments

Comments
 (0)