Configuring the draggable options
The draggable component has a wide range of configurable options, giving us a very fine degree of control over the behavior that it adds. The following table lists the options that we can manipulate to configure and control our drag elements:
Option |
Default value |
Used to… |
---|---|---|
|
|
Add the |
|
|
Specify a container element for drag objects with a helper attached. |
|
|
Constrain drag objects to one axis of motion. Accepts the strings |
|
|
Prevent certain elements from being dragged, if they match the specified element selector. |
|
|
Allow the drag object to be dropped on to a sortable list and become one of the sort elements. |
|
|
Prevent drag objects from being dragged out of the bounds of its parent element... |