Class: Drag

nyc/Drag~ Drag


new Drag(options)

Class

Parameters:
Name Type Description
options Object

Constructor options

Source:

Type Definitions


Options

Constructor option for module:nyc/Drag~Drag

Type:
  • Object
Properties:
Name Type Argument Default Description
target jQuery | Element | string

The DOM node that will become draggable

handle jQuery | Element | string

The child node of the target that will used as the dragging handle

tail boolean <optional>
false

Attach a callout tail that will always point at its starting location

tailOffset Array.<Number> <optional>
[0, 0]

Offset the tail

Source: