Class Proxy
- extends Drag
This class extends dd-drag to allow for creating a proxy drag node, instead of dragging the original node.
Properties inherited from Drag:
_clickTimeout,
_dragThreshMet,
_endTime,
_ev_md,
_fromTimeout,
_groups,
_handles,
_ieSelectBack,
_invalids,
_invalidsDefault,
_startTime,
deltaXY,
lastXY,
mouseXY,
nodeXY,
region,
startXY,
target
Properties inherited from Base:
Methods
private
void
_createFrame
(
)
Create the proxy element if it doesn't already exist and set the DD.DDM._proxy value
private
void
_setFrame
(
)
If resizeProxy is set to true (default) it will resize the proxy element to match the size of the Drag Element.
If positionProxy is set to true (default) it will position the proxy element in the same location as the Drag Element.
void
end
(
)
Ends the drag operation, if moveOnEnd is set it will position the Drag Element to the new location of the proxy.
private
void
initializer
(
)
Lifecycle method
void
start
(
)
Starts the drag operation and sets the dragNode config option.
Methods inherited from Attribute:
_cloneAttVal,
_defAttSet,
_fireAttChange,
_getSubAttVal,
_initAtts,
_initAttVal,
_set,
_setSubAttVal,
_splitAttrValues,
addAtt,
get,
getAtts,
on,
removeAtt,
reset,
set,
setAtts
Methods inherited from Drag:
_align,
_createEvents,
_fixDragStart,
_fixIEMouseDown,
_fixIEMouseUp,
_handleMouseDown,
_handleMouseDownEvent,
_handleMouseUp,
_handleTarget,
_ieSelectFix,
_move,
_moveNode,
_prep,
_setStartPosition,
_timeoutCheck,
_unprep,
addHandle,
addInvalid,
addToGroup,
destructor,
end,
initializer,
removeFromGroup,
removeHandle,
removeInvalid,
start,
stopDrag,
validClick
Methods inherited from Base:
_defDestroyFn,
_defInitFn,
_destroyHierarchy,
_getClasses,
_initHierarchy,
_prefixEvtType,
after,
destroy,
fire,
init,
publish,
subscribe,
toString,
unsubscribe,
unsubscribeAll
Events
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
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
(
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
proxyChange
(
event
)
Fires when the value for the configuration attribute 'proxy' 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
(
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 Drag:
activeHandleChange,
bubblesChange,
clickPixelThreshChange,
clickTimeThreshChange,
dataChange,
drag:addHandle,
drag:addInvalid,
drag:afterMouseDown,
drag:drag,
drag:drophit,
drag:dropmiss,
drag:end,
drag:enter,
drag:exit
drag:mouseDown
drag:over
drag:removeHandle
drag:removeInvalid
drag:start
draggingChange
dragModeChange
dragNodeChange
groupsChange
handlesChange
lockChange
moveChange
nodeChange
offsetNodeChange
primaryButtonOnlyChange
targetChange
useShimChange
Events inherited from Base:
Configuration Attributes
The default border style for the border of the proxy. Default: 1px solid #808080
Move the original node at the end of the drag. Default: true
Make the Proxy node appear in the same place as the original node. Default: true
Make this Draggable instance a Proxy instance. Default: false
Make the Proxy node assume the size of the original node. Default: true
Configuration attributes inherited from Drag:
activeHandle,
bubbles,
clickPixelThresh,
clickTimeThresh,
data,
dragging,
dragMode,
dragNode,
groups,
handles,
lock,
move,
node,
offsetNode
primaryButtonOnly
target
useShim
Configuration attributes inherited from Base: