Class Ext.dd.StatusProxy
Package: | Ext.dd |
Class: | StatusProxy |
Extends: | Object |
Defined In: | StatusProxy.js |
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.
Properties
-
Methods
-
Events
-
Config Options
Public Properties
This class has no public properties.
Public Methods
|
StatusProxy( Object config ) |
StatusProxy |
|
|
getEl() : Ext.Layer |
StatusProxy |
Returns the underlying proxy Ext.Layer |
|
getGhost() : Ext.Element |
StatusProxy |
Returns the ghost element |
|
hide( Boolean clear ) : void |
StatusProxy |
Hides the proxy |
|
repair( Array xy , Function callback , Object scope ) : void |
StatusProxy |
Causes the proxy to return to its position of origin via an animation. Should be called after an
invalid drop operat... |
|
reset( Boolean clearGhost ) : void |
StatusProxy |
Resets the status indicator to the default dropNotAllowed value |
|
setStatus( String cssClass ) : void |
StatusProxy |
Updates the proxy's visual element to indicate the status of whether or not drop is allowed
over the current target e... |
|
show() : void |
StatusProxy |
Displays this proxy |
|
stop() : void |
StatusProxy |
Stops the repair animation if it's currently running |
|
sync() : void |
StatusProxy |
Force the Layer to sync its shadow and shim positions to the element |
|
update( String html ) : void |
StatusProxy |
Updates the contents of the ghost element |
Public Events
This class has no public events.
Config Options
|
dropAllowed : String |
StatusProxy |
The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok"). |
|
dropNotAllowed : String |
StatusProxy |
The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop"). |
Constructor Details
StatusProxy
public function StatusProxy( Object config
)
Method Details
getEl
public function getEl()
This method is defined by StatusProxy.
getGhost
public function getGhost()
Returns the ghost element
This method is defined by StatusProxy.
hide
public function hide( Boolean clear
)
This method is defined by StatusProxy.
repair
public function repair( Array xy
, Function callback
, Object scope
)
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:
This method is defined by StatusProxy.
reset
public function reset( Boolean clearGhost
)
Resets the status indicator to the default dropNotAllowed value
This method is defined by StatusProxy.
setStatus
public function setStatus( String cssClass
)
Updates the proxy's visual element to indicate the status of whether or not drop is allowed
over the current target element.
This method is defined by StatusProxy.
show
public function show()
This method is defined by StatusProxy.
stop
public function stop()
Stops the repair animation if it's currently running
This method is defined by StatusProxy.
sync
public function sync()
Force the Layer to sync its shadow and shim positions to the element
This method is defined by StatusProxy.
update
public function update( String html
)
Updates the contents of the ghost element
This method is defined by StatusProxy.
Config Details
dropAllowed
dropAllowed : String
The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok").
This config option is defined by StatusProxy.
dropNotAllowed
dropNotAllowed : String
The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop").
This config option is defined by StatusProxy.