X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/api/Ext.dd.StatusProxy.html diff --git a/docs/api/Ext.dd.StatusProxy.html b/docs/api/Ext.dd.StatusProxy.html new file mode 100644 index 00000000..4c0e9896 --- /dev/null +++ b/docs/api/Ext.dd.StatusProxy.html @@ -0,0 +1,98 @@ +Ext.dd.StatusProxy | Ext JS 4.0 Documentation +
For up to date documentation and features, visit +http://docs.sencha.com/ext-js/4-0

Sencha Documentation

+ + + + + +

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.

+
Defined By

Config Options

Other Configs

 

The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok").

+

The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok").

+
 

The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop").

+

The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop").

+
Defined By

Methods

 

 

+

Parameters

  • config : Object
    +

Returns

  • void    +
 

Returns the underlying proxy Ext.Layer

+

Returns the underlying proxy Ext.Layer

+

Returns

  • Ext.Layer   

    el

    +
 

Returns the ghost element

+

Returns the ghost element

+

Returns

  • Ext.core.Element   

    el

    +
 
hide( +Boolean clear) + : void

Hides the proxy

+

Hides the proxy

+

Parameters

  • clear : Boolean

    True to reset the status and clear the ghost contents, false to preserve them

    +

Returns

  • void    +
 
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 : Array

    The XY position of the element ([x, y])

    +
  • callback : Function

    The function to call after the repair is complete.

    +
  • scope : Object

    The scope (this reference) in which the callback function is executed. Defaults to the browser window.

    +

Returns

  • void    +
 
reset( +Boolean clearGhost) + : void

Resets the status indicator to the default dropNotAllowed value

+

Resets the status indicator to the default dropNotAllowed value

+

Parameters

  • clearGhost : Boolean

    True to also remove all content from the ghost, false to preserve it

    +

Returns

  • void    +
 
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.

+

Parameters

  • cssClass : String

    The css class for the new drop status indicator image

    +

Returns

  • void    +
 

Displays this proxy

+

Displays this proxy

+

Returns

  • void    +
 

Stops the repair animation if it's currently running

+

Stops the repair animation if it's currently running

+

Returns

  • 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

+

Returns

  • void    +
 
update( +String/HTMLElement html) + : void

Updates the contents of the ghost element

+

Updates the contents of the ghost element

+

Parameters

  • html : String/HTMLElement

    The html that will replace the current innerHTML of the ghost element, or a +DOM node to append as the child of the ghost element (in which case the innerHTML will be cleared first).

    +

Returns

  • void    +
\ No newline at end of file