Class: ControlCursor

ControlCursor(controls, id, element, opts)

Sets the CSS cursor on a DOM element according to the state of a ControlMethod.

Constructor

new ControlCursor(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 be set.

opts Object

The control cursors. Each field must be a valid value for the cursor CSS property.

Properties
Name Type Attributes Default Description
active string <optional>
'move'

Cursor to set when the control method is enabled and active.

inactive string <optional>
'default'

Cursor to set when the control method is enabled and inactive.

disabled string <optional>
'default'

Cursor to set when the control method is disabled.

Methods

destroy()

Destructor.