Class: DragCursor

DragCursor(controls, id, element, opts)

Changes the cursor when a {@link ControlMethod) is active. By default this is used with the drag control method.

Constructor

new DragCursor(controls, id, element, opts)

Parameters:
Name Type Description
controls Controls

Controls instance containing the control method.

id string

ID of the control method.

element Element

DOM element where the cursor should change.

opts Object
Properties
Name Type Attributes Default Description
active Array.<string> <optional>
[ 'move' ]

Cursors to use when active.

inactive Array.<string> <optional>
[ 'default' ]

Cursors to use when inactive.

disabled Array.<string> <optional>
[ 'null' ]

Cursors to use when disabled.

Methods

destroy()

Destroy the instance