Yahoo! UI Library

dd  3.0.0

Yahoo! UI Library > dd > Plugin.DDProxy
Search:
 
Filters

Class Plugin.DDProxy - extends Base

This plugin for dd-drag is for creating a proxy drag node, instead of dragging the original node.

Constructor

Plugin.DDProxy ( )

Properties

_hands - private object

Holds the event handles for setting the proxy

proxy - {String}

The Proxy instance will be placed on the Drag instance under the proxy namespace.

Properties inherited from Attribute:

Properties inherited from Base:

Methods

_init

private void _init ( )
Handler for the proxy config attribute

Events

borderStyleChange

borderStyleChange ( event )
Fires when the value for the configuration attribute 'borderStyle' 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:
event <Event.Facade> An Event Facade object with the following attribute specific properties added:
prevVal
The value of the attribute, prior to it being set
newVal
The value the attribute is to be set to
attrName
The name of the attribute being set
subAttrName
If setting a property within the attribute's value, the name of the sub-attribute property being set

hideOnEndChange

hideOnEndChange ( event )
Fires when the value for the configuration attribute 'hideOnEnd' 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:
event <Event.Facade> An Event Facade object with the following attribute specific properties added:
prevVal
The value of the attribute, prior to it being set
newVal
The value the attribute is to be set to
attrName
The name of the attribute being set
subAttrName
If setting a property within the attribute's value, the name of the sub-attribute property being set

moveOnEndChange

moveOnEndChange ( event )
Fires when the value for the configuration attribute 'moveOnEnd' 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:
event <Event.Facade> An Event Facade object with the following attribute specific properties added:
prevVal
The value of the attribute, prior to it being set
newVal
The value the attribute is to be set to
attrName
The name of the attribute being set
subAttrName
If setting a property within the attribute's value, the name of the sub-attribute property being set

positionProxyChange

positionProxyChange ( event )
Fires when the value for the configuration attribute 'positionProxy' 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:
event <Event.Facade> An Event Facade object with the following attribute specific properties added:
prevVal
The value of the attribute, prior to it being set
newVal
The value the attribute is to be set to
attrName
The name of the attribute being set
subAttrName
If setting a property within the attribute's value, the name of the sub-attribute property being set

resizeFrameChange

resizeFrameChange ( event )
Fires when the value for the configuration attribute 'resizeFrame' 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:
event <Event.Facade> An Event Facade object with the following attribute specific properties added:
prevVal
The value of the attribute, prior to it being set
newVal
The value the attribute is to be set to
attrName
The name of the attribute being set
subAttrName
If setting a property within the attribute's value, the name of the sub-attribute property being set

Events inherited from Base:

Configuration Attributes

borderStyle - Boolean

The default border style for the border of the proxy. Default: 1px solid #808080

hideOnEnd - Boolean

Hide the drag node at the end of the drag. Default: true

moveOnEnd - Boolean

Move the original node at the end of the drag. Default: true

positionProxy - Boolean

Make the Proxy node appear in the same place as the original node. Default: true

resizeFrame - Boolean

Make the Proxy node assume the size of the original node. Default: true

Configuration attributes inherited from Base:


Copyright © 2009 Yahoo! Inc. All rights reserved.