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
-`draggable` - allows to override draggable options - see `DDDragOpt`. (default: `{handle: '.grid-stack-item-content', appendTo: 'body'}`)
104
106
-`dragOut` to let user drag nested grid items out of a parent or not (default false) See [example](http://gridstackjs.com/demo/nested.html)
105
107
-`engineClass` - the type of engine to create (so you can subclass) default to GridStackEngine
106
108
-`float` - enable floating widgets (default: `false`) See [example](http://gridstackjs.com/demo/float.html)
@@ -128,6 +130,14 @@ gridstack.js API
128
130
-`staticGrid` - removes drag|drop|resize (default `false`). If `true` widgets are not movable/resizable by the user, but code can still move and oneColumnMode will still work. You can use the smaller gridstack-static.js lib. A CSS class `grid-stack-static` is also added to the container.
129
131
-`styleInHead` - if `true` will add style element to `<head>` otherwise will add it to element's parent node (default `false`).
130
132
133
+
### DDDragInOpt
134
+
-`handle`?: string - class selector of items that can be dragged. default to '.grid-stack-item-content'
135
+
-`appendTo`?: string - default to 'body' (TODO: is this even used anymore ?)
136
+
-`pause`?: boolean | number - if set (true | msec), dragging placement (collision) will only happen after a pause by the user. Note: this is Global
137
+
138
+
### DDDragInOpt extends DDDragOpt
139
+
-`helper`?: string | ((event: Event) => HTMLElement) - helper function when dropping (ex: 'clone' or your own method)
140
+
131
141
## Grid attributes
132
142
133
143
most of the above options are also available as HTML attributes using the `gs-` name prefix with standard dash lower case naming convention (ex: `gs-column`, `gs-min-row`, `gs-static`, etc..).
0 commit comments