Class Ext.dd.StatusProxy
Package: | Ext.dd |
Defined In: | StatusProxy.js |
Class: | StatusProxy |
Extends: | Object |
A specialized drag proxy that supports a drop status icon,
Ext.Layer styles and auto-repair. This is the
default drag proxy used by all Ext.dd components.
Config Options
|
dropAllowed : String
The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok").
|
StatusProxy |
|
dropNotAllowed : String
The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop").
|
StatusProxy |
Public Properties
This class has no public properties.
Public Methods
|
StatusProxy( Object config )
|
StatusProxy |
|
getEl() : Ext.Layer
|
StatusProxy |
|
getGhost() : Ext.Element
Returns the ghost element
Returns the ghost element
|
StatusProxy |
|
hide( Boolean clear ) : void
|
StatusProxy |
|
repair( Array xy , Function callback , Object scope ) : void
Causes the proxy to return to its position of origin via an animation. Should be called after an
invalid drop operat...
Causes the proxy to return to its position of origin via an animation. Should be called after an
invalid drop operation by the item being dragged.
Parameters:
xy : ArrayThe XY position of the element ([x, y]) callback : FunctionThe function to call after the repair is complete scope : ObjectThe scope in which to execute the callback
Returns:
|
StatusProxy |
|
reset( Boolean clearGhost ) : void
Resets the status indicator to the default dropNotAllowed value
Resets the status indicator to the default dropNotAllowed value
|
StatusProxy |
|
setStatus( String cssClass ) : void
Updates the proxy's visual element to indicate the status of whether or not drop is allowed
over the current target e...
Updates the proxy's visual element to indicate the status of whether or not drop is allowed
over the current target element.
|
StatusProxy |
|
show() : void
|
StatusProxy |
|
stop() : void
Stops the repair animation if it's currently running
Stops the repair animation if it's currently running
|
StatusProxy |
|
sync() : void
Force the Layer to sync its shadow and shim positions to the element
Force the Layer to sync its shadow and shim positions to the element
|
StatusProxy |
|
update( String html ) : void
Updates the contents of the ghost element
Updates the contents of the ghost element
|
StatusProxy |
Public Events
This class has no public events.