API Docs for: 3.8.0
Show:

Plugin.DDNodeScroll Class

Extends Scroll
Defined in: dd/js/scroll.js:365
Module: dd-scroll
Parent Module: dd

Extends the Scroll class to make a parent node scroll while dragging.

Constructor

Plugin.DDNodeScroll

()

Defined in dd/js/scroll.js:365

Item Index

Properties

  • NS static

Attributes

Properties

NS

String protected static

Defined in dd/js/scroll.js:403

The NodeScroll instance will be placed on the Drag instance under the nodescroll namespace.

Default: nodescroll

Attributes

node

Node

Defined in dd/js/scroll.js:377

The node we want to scroll. Used to set the internal parentScroll attribute.

Fires event nodeChange

Fires when the value for the configuration attribute node is changed. You can listen for the event using the on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.

Parameters:

  • e EventFacade
    An Event Facade object with the following attribute-specific properties added:
    • prevVal Any
      The value of the attribute, prior to it being set.
    • newVal Any
      The value the attribute is to be set to.
    • attrName String
      The name of the attribute being set.
    • subAttrName String
      If setting a property within the attribute's value, the name of the sub-attribute property being set.