Ext.data.JsonP.Ext_dd_DDProxy({"mixins":[],"code_type":"ext_define","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":["Ext.Base","Ext.dd.DragDrop","Ext.dd.DD"],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"$className","id":"property-S-className"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"__ygDragDrop","id":"property-__ygDragDrop"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"_domRef","id":"property-_domRef"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"available","id":"property-available"},{"meta":{},"owner":"Ext.dd.DDProxy","tagname":"property","name":"centerFrame","id":"property-centerFrame"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"config","id":"property-config"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"configMap","id":"property-configMap"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"constrainX","id":"property-constrainX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"constrainY","id":"property-constrainY"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"defaultPadding","id":"property-defaultPadding"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"dragElId","id":"property-dragElId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"groups","id":"property-groups"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"handleElId","id":"property-handleElId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"hasOuterHandles","id":"property-hasOuterHandles"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"id","id":"property-id"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"ignoreSelf","id":"property-ignoreSelf"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigList","id":"property-initConfigList"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigMap","id":"property-initConfigMap"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"invalidHandleClasses","id":"property-invalidHandleClasses"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"invalidHandleIds","id":"property-invalidHandleIds"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"invalidHandleTypes","id":"property-invalidHandleTypes"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"isInstance","id":"property-isInstance"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"isTarget","id":"property-isTarget"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"locked","id":"property-locked"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"maintainOffset","id":"property-maintainOffset"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"maxX","id":"property-maxX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"maxY","id":"property-maxY"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"minX","id":"property-minX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"minY","id":"property-minY"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"moveOnly","id":"property-moveOnly"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"padding","id":"property-padding"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"primaryButtonOnly","id":"property-primaryButtonOnly"},{"meta":{},"owner":"Ext.dd.DDProxy","tagname":"property","name":"resizeFrame","id":"property-resizeFrame"},{"meta":{},"owner":"Ext.dd.DD","tagname":"property","name":"scroll","id":"property-scroll"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"property","name":"self","id":"property-self"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"startPageX","id":"property-startPageX"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"property","name":"startPageY","id":"property-startPageY"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"xTicks","id":"property-xTicks"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"property","name":"yTicks","id":"property-yTicks"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.dd.DDProxy","tagname":"method","name":"constructor","id":"method-constructor"},{"meta":{"private":true},"owner":"Ext.dd.DDProxy","tagname":"method","name":"_resizeProxy","id":"method-_resizeProxy"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"addInvalidHandleClass","id":"method-addInvalidHandleClass"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"addInvalidHandleId","id":"method-addInvalidHandleId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"addInvalidHandleType","id":"method-addInvalidHandleType"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"addToGroup","id":"method-addToGroup"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"alignElWithMouse","id":"method-alignElWithMouse"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"applyConfig","id":"method-applyConfig"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"autoOffset","id":"method-autoOffset"},{"meta":{"private":true},"owner":"Ext.dd.DD","tagname":"method","name":"autoScroll","id":"method-autoScroll"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"b4Drag","id":"method-b4Drag"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4DragDrop","id":"method-b4DragDrop"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4DragOut","id":"method-b4DragOut"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4DragOver","id":"method-b4DragOver"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4EndDrag","id":"method-b4EndDrag"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"b4MouseDown","id":"method-b4MouseDown"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"b4StartDrag","id":"method-b4StartDrag"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"cachePosition","id":"method-cachePosition"},{"meta":{"deprecated":{"text":"as of 4.1. Use {@link #callParent} instead."},"protected":true},"owner":"Ext.Base","tagname":"method","name":"callOverridden","id":"method-callOverridden"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"callParent","id":"method-callParent"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"clearConstraints","id":"method-clearConstraints"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"clearTicks","id":"method-clearTicks"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"configClass","id":"method-configClass"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"constrainTo","id":"method-constrainTo"},{"meta":{},"owner":"Ext.dd.DDProxy","tagname":"method","name":"createFrame","id":"method-createFrame"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"destroy","id":"method-destroy"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"endDrag","id":"method-endDrag"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"getConfig","id":"method-getConfig"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"getDragEl","id":"method-getDragEl"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"getEl","id":"method-getEl"},{"meta":{},"owner":"Ext.Base","tagname":"method","name":"getInitialConfig","id":"method-getInitialConfig"},{"meta":{"private":true},"owner":"Ext.dd.DD","tagname":"method","name":"getTargetCoord","id":"method-getTargetCoord"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"getTick","id":"method-getTick"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"handleMouseDown","id":"method-handleMouseDown"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"handleOnAvailable","id":"method-handleOnAvailable"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"hasConfig","id":"method-hasConfig"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"init","id":"method-init"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"initConfig","id":"method-initConfig"},{"meta":{},"owner":"Ext.dd.DDProxy","tagname":"method","name":"initFrame","id":"method-initFrame"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"initTarget","id":"method-initTarget"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"isLocked","id":"method-isLocked"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"isValidHandleChild","id":"method-isValidHandleChild"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"lock","id":"method-lock"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onAvailable","id":"method-onAvailable"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"onConfigUpdate","id":"method-onConfigUpdate"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onDrag","id":"method-onDrag"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onDragDrop","id":"method-onDragDrop"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onDragEnter","id":"method-onDragEnter"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onDragOut","id":"method-onDragOut"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onDragOver","id":"method-onDragOver"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onInvalidDrop","id":"method-onInvalidDrop"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onMouseDown","id":"method-onMouseDown"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"onMouseUp","id":"method-onMouseUp"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"removeFromGroup","id":"method-removeFromGroup"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"removeInvalidHandleClass","id":"method-removeInvalidHandleClass"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"removeInvalidHandleId","id":"method-removeInvalidHandleId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"removeInvalidHandleType","id":"method-removeInvalidHandleType"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"resetConstraints","id":"method-resetConstraints"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"setConfig","id":"method-setConfig"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"setDelta","id":"method-setDelta"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setDragElId","id":"method-setDragElId"},{"meta":{},"owner":"Ext.dd.DD","tagname":"method","name":"setDragElPos","id":"method-setDragElPos"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setHandleElId","id":"method-setHandleElId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setInitPosition","id":"method-setInitPosition"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setOuterHandleElId","id":"method-setOuterHandleElId"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setPadding","id":"method-setPadding"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setStartPosition","id":"method-setStartPosition"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setXConstraint","id":"method-setXConstraint"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setXTicks","id":"method-setXTicks"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setYConstraint","id":"method-setYConstraint"},{"meta":{"private":true},"owner":"Ext.dd.DragDrop","tagname":"method","name":"setYTicks","id":"method-setYTicks"},{"meta":{"private":true},"owner":"Ext.dd.DDProxy","tagname":"method","name":"showFrame","id":"method-showFrame"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"startDrag","id":"method-startDrag"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"statics","id":"method-statics"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"toString","id":"method-toString"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"unlock","id":"method-unlock"},{"meta":{},"owner":"Ext.dd.DragDrop","tagname":"method","name":"unreg","id":"method-unreg"}],"css_mixin":[],"cfg":[]},"tagname":"class","extends":"Ext.dd.DD","html":"

Hierarchy

Subclasses

Files

A DragDrop implementation that inserts an empty, bordered div into\nthe document that follows the cursor during drag operations. At the time of\nthe click, the frame div is resized to the dimensions of the linked html\nelement, and moved to the exact location of the linked element.

\n\n

References to the \"frame\" element refer to the single proxy element that\nwas created to be dragged in place of all DDProxy elements on the\npage.

\n

Properties

Defined By

Instance Properties

...
\n

Defaults to: "Ext.Base"

Internal typeof flag ...

Internal typeof flag

\n

Defaults to: true

Cached reference to the linked element ...

Cached reference to the linked element

\n

Defaults to: null

The available property is false until the linked dom element is accessible. ...

The available property is false until the linked dom element is accessible.

\n

Defaults to: false

By default the frame is positioned exactly where the drag element is, so\nwe use the cursor offset provided by Ext.dd.DD. ...

By default the frame is positioned exactly where the drag element is, so\nwe use the cursor offset provided by Ext.dd.DD. Another option that works only if\nyou do not have constraints on the obj is to have the drag frame centered\naround the cursor. Set centerFrame to true for this effect.

\n

Defaults to: false

Configuration attributes passed into the constructor ...

Configuration attributes passed into the constructor

\n

Defaults to: null

...
\n

Defaults to: {}

Set to true when horizontal contraints are applied ...

Set to true when horizontal contraints are applied

\n

Defaults to: false

Set to true when vertical contraints are applied ...

Set to true when vertical contraints are applied

\n

Defaults to: false

Provides default constraint padding to \"constrainTo\" elements. ...

Provides default constraint padding to \"constrainTo\" elements.

\n

Defaults to: {left: 0, right: 0, top: 0, bottom: 0}

The id of the element that will be dragged. ...

The id of the element that will be dragged. By default this is same\nas the linked element, but could be changed to another element. Ex:\nExt.dd.DDProxy

\n

Defaults to: null

The group defines a logical collection of DragDrop objects that are\nrelated. ...

The group defines a logical collection of DragDrop objects that are\nrelated. Instances only get events when interacting with other\nDragDrop object in the same group. This lets us define multiple\ngroups using a single DragDrop subclass if we want.

\n\n

An object in the format {'group1':true, 'group2':true}

\n

Defaults to: null

The ID of the element that initiates the drag operation. ...

The ID of the element that initiates the drag operation. By default\nthis is the linked element, but could be changed to be a child of this\nelement. This lets us do things like only starting the drag when the\nheader element within the linked html element is clicked.

\n

Defaults to: null

By default, drags can only be initiated if the mousedown occurs in the\nregion the linked element is. ...

By default, drags can only be initiated if the mousedown occurs in the\nregion the linked element is. This is done in part to work around a\nbug in some browsers that mis-report the mousedown if the previous\nmouseup happened outside of the window. This property is set to true\nif outer handles are defined. Defaults to false.

\n

Defaults to: false

The id of the element associated with this object. ...

The id of the element associated with this object. This is what we\nrefer to as the \"linked element\" because the size and position of\nthis element is used to determine when the drag and drop objects have\ninteracted.

\n

Defaults to: null

Set to false to enable a DragDrop object to fire drag events while dragging\nover its own Element. ...

Set to false to enable a DragDrop object to fire drag events while dragging\nover its own Element. Defaults to true - DragDrop objects do not by default\nfire drag events to themselves.

\n
...
\n

Defaults to: []

...
\n

Defaults to: {}

An Array of CSS class names for elements to be considered in valid as drag handles. ...

An Array of CSS class names for elements to be considered in valid as drag handles.

\n

Defaults to: null

An object who's property names identify the IDs of elements to be considered invalid as drag handles. ...

An object who's property names identify the IDs of elements to be considered invalid as drag handles.\nA non-null property value identifies the ID as invalid. For example, to prevent\ndragging from being initiated on element ID \"foo\", use:

\n\n
{\n    foo: true\n}\n
\n

Defaults to: null

An object who's property names identify HTML tags to be considered invalid as drag handles. ...

An object who's property names identify HTML tags to be considered invalid as drag handles.\nA non-null property value identifies the tag as invalid. Defaults to the\nfollowing value which prevents drag operations from being initiated by <a> elements:

\n\n
{\n    A: \"A\"\n}\n
\n

Defaults to: null

...
\n

Defaults to: true

By default, all instances can be a drop target. ...

By default, all instances can be a drop target. This can be disabled by\nsetting isTarget to false.

\n

Defaults to: true

Individual drag/drop instances can be locked. ...

Individual drag/drop instances can be locked. This will prevent\nonmousedown start drag.

\n

Defaults to: false

Maintain offsets when we resetconstraints. ...

Maintain offsets when we resetconstraints. Set to true when you want\nthe position of the element relative to its parent to stay the same\nwhen the page changes

\n

Defaults to: false

The right constraint ...

The right constraint

\n

Defaults to: 0

The down constraint ...

The down constraint

\n

Defaults to: 0

The left constraint ...

The left constraint

\n

Defaults to: 0

The up constraint ...

The up constraint

\n

Defaults to: 0

When set to true, other DD objects in cooperating DDGroups do not receive\nnotification events when this DD object is ...

When set to true, other DD objects in cooperating DDGroups do not receive\nnotification events when this DD object is dragged over them.

\n

Defaults to: false

The padding configured for this drag and drop object for calculating\nthe drop zone intersection with this object. ...

The padding configured for this drag and drop object for calculating\nthe drop zone intersection with this object.\nAn array containing the 4 padding values: [top, right, bottom, left]

\n

Defaults to: null

By default the drag and drop instance will only respond to the primary\nbutton click (left button for a right-handed m...

By default the drag and drop instance will only respond to the primary\nbutton click (left button for a right-handed mouse). Set to true to\nallow drag and drop to start with any mouse click that is propogated\nby the browser

\n

Defaults to: true

By default we resize the drag frame to be the same size as the element\nwe want to drag (this is to get the frame effe...

By default we resize the drag frame to be the same size as the element\nwe want to drag (this is to get the frame effect). We can turn it off\nif we want a different behavior.

\n

Defaults to: true

When set to true, the utility automatically tries to scroll the browser\nwindow when a drag and drop element is dragge...

When set to true, the utility automatically tries to scroll the browser\nwindow when a drag and drop element is dragged near the viewport boundary.

\n

Defaults to: true

Get the reference to the current class from which this object was instantiated. ...

Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison

\n\n
Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); // dependent on 'this'\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n
\n
The linked element's absolute X position at the time the drag was\nstarted ...

The linked element's absolute X position at the time the drag was\nstarted

\n

Defaults to: 0

The linked element's absolute X position at the time the drag was\nstarted ...

The linked element's absolute X position at the time the drag was\nstarted

\n

Defaults to: 0

Array of pixel locations the element will snap to if we specified a\nhorizontal graduation/interval. ...

Array of pixel locations the element will snap to if we specified a\nhorizontal graduation/interval. This array is generated automatically\nwhen you define a tick interval.

\n

Defaults to: null

Array of pixel locations the element will snap to if we specified a\nvertical graduation/interval. ...

Array of pixel locations the element will snap to if we specified a\nvertical graduation/interval. This array is generated automatically\nwhen you define a tick interval.

\n

Defaults to: null

Defined By

Static Properties

...
\n

Defaults to: []

Ext.dd.DDProxy
view source
: Stringstatic
The default drag frame div id ...

The default drag frame div id

\n

Defaults to: "ygddfdiv"

Methods

Defined By

Instance Methods

Ext.dd.DDProxy
view source
new( String id, String sGroup, Object config ) : Object
Creates new DDProxy. ...

Creates new DDProxy.

\n

Parameters

  • id : String

    the id of the linked html element

    \n
  • sGroup : String

    the group of related DragDrop objects

    \n
  • config : Object

    an object containing configurable attributes.\nValid properties for DDProxy in addition to those in DragDrop:

    \n\n
      \n
    • resizeFrame
    • \n
    • centerFrame
    • \n
    • dragElId
    • \n
    \n\n

Returns

Overrides: Ext.dd.DD.constructor

Ext.dd.DDProxy
view source
( )private
The proxy is automatically resized to the dimensions of the linked\nelement when a drag is initiated, unless resizeFra...

The proxy is automatically resized to the dimensions of the linked\nelement when a drag is initiated, unless resizeFrame is set to false

\n
Lets you specify a css class of elements that will not initiate a drag ...

Lets you specify a css class of elements that will not initiate a drag

\n

Parameters

  • cssClass : String

    the class of the elements you wish to ignore

    \n
Lets you to specify an element id for a child of a drag handle\nthat should not initiate a drag ...

Lets you to specify an element id for a child of a drag handle\nthat should not initiate a drag

\n

Parameters

  • id : String

    the element id of the element you wish to ignore

    \n
Allows you to specify a tag name that should not start a drag operation\nwhen clicked. ...

Allows you to specify a tag name that should not start a drag operation\nwhen clicked. This is designed to facilitate embedding links within a\ndrag handle that do something other than start the drag.

\n

Parameters

  • tagName : String

    the type of element to exclude

    \n
Adds this instance to a group of related drag/drop objects. ...

Adds this instance to a group of related drag/drop objects. All\ninstances belong to at least one group, and can belong to as many\ngroups as needed.

\n

Parameters

  • sGroup : String

    the name of the group

    \n
( HTMLElement el, Number iPageX, Number iPageY )
Sets the element to the location of the mousedown or click event,\nmaintaining the cursor location relative to the loc...

Sets the element to the location of the mousedown or click event,\nmaintaining the cursor location relative to the location on the element\nthat was clicked. Override this if you want to place the element in a\nlocation other than where the cursor is.

\n

Parameters

  • el : HTMLElement

    the element to move

    \n
  • iPageX : Number

    the X coordinate of the mousedown or drag event

    \n
  • iPageY : Number

    the Y coordinate of the mousedown or drag event

    \n
Sets up config options specific to this class. ...

Sets up config options specific to this class. Overrides\nExt.dd.DragDrop, but all versions of this method through the\ninheritance chain are called

\n

Overrides: Ext.dd.DragDrop.applyConfig

Sets the pointer offset to the distance between the linked element's top\nleft corner and the location the element was...

Sets the pointer offset to the distance between the linked element's top\nleft corner and the location the element was clicked.

\n

Parameters

  • iPageX : Number

    the X coordinate of the click

    \n
  • iPageY : Number

    the Y coordinate of the click

    \n
Auto-scroll the window if the dragged object has been moved beyond the\nvisible window boundary. ...

Auto-scroll the window if the dragged object has been moved beyond the\nvisible window boundary.

\n

Parameters

  • x : Number

    the drag element's x position

    \n
  • y : Number

    the drag element's y position

    \n
  • h : Number

    the height of the drag element

    \n
  • w : Number

    the width of the drag element

    \n
Event that fires prior to the onDrag event. ...

Event that fires prior to the onDrag event. Overrides\nExt.dd.DragDrop.

\n

Parameters

Overrides: Ext.dd.DragDrop.b4Drag

Code that executes immediately before the onDragDrop event ...

Code that executes immediately before the onDragDrop event

\n

Parameters

Code that executes immediately before the onDragOut event ...

Code that executes immediately before the onDragOut event

\n

Parameters

Code that executes immediately before the onDragOver event ...

Code that executes immediately before the onDragOver event

\n

Parameters

Code that executes immediately before the endDrag event ...

Code that executes immediately before the endDrag event

\n

Parameters

Event that fires prior to the onMouseDown event. ...

Event that fires prior to the onMouseDown event. Overrides\nExt.dd.DragDrop.

\n

Parameters

Overrides: Ext.dd.DragDrop.b4MouseDown

Code that executes immediately before the startDrag event ...

Code that executes immediately before the startDrag event

\n

Parameters

Saves the most recent position so that we can reset the constraints and\ntick marks on-demand. ...

Saves the most recent position so that we can reset the constraints and\ntick marks on-demand. We need to know this so that we can calculate the\nnumber of pixels the element is offset from its original position.

\n

Parameters

  • iPageX : Number (optional)

    the current x position (this just makes it so we\ndon't have to look it up again)

    \n
  • iPageY : Number (optional)

    the current y position (this just makes it so we\ndon't have to look it up again)

    \n
( Array/Arguments args ) : Objectdeprecatedprotected
Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...

Call the original method that was previously overridden with override

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n
\n

This method has been deprecated

\n

as of 4.1. Use callParent instead.

\n\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callOverridden(arguments)

    \n

Returns

  • Object

    Returns the result of calling the overridden method

    \n
( Array/Arguments args ) : Objectprotected
Call the \"parent\" method of the current method. ...

Call the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).

\n\n
 Ext.define('My.Base', {\n     constructor: function (x) {\n         this.x = x;\n     },\n\n     statics: {\n         method: function (x) {\n             return x;\n         }\n     }\n });\n\n Ext.define('My.Derived', {\n     extend: 'My.Base',\n\n     constructor: function () {\n         this.callParent([21]);\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // alerts 21\n
\n\n

This can be used with an override as follows:

\n\n
 Ext.define('My.DerivedOverride', {\n     override: 'My.Derived',\n\n     constructor: function (x) {\n         this.callParent([x*2]); // calls original My.Derived constructor\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // now alerts 42\n
\n\n

This also works with static methods.

\n\n
 Ext.define('My.Derived2', {\n     extend: 'My.Base',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Base.method\n         }\n     }\n });\n\n alert(My.Base.method(10);     // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\n

Lastly, it also works with overridden static methods.

\n\n
 Ext.define('My.Derived2Override', {\n     override: 'My.Derived2',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Derived2.method\n         }\n     }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callParent(arguments)

    \n

Returns

  • Object

    Returns the result of calling the parent method

    \n
Clears any constraints applied to this instance. ...

Clears any constraints applied to this instance. Also clears ticks\nsince they can't exist independent of a constraint at this time.

\n
Clears any tick interval defined for this instance ...

Clears any tick interval defined for this instance

\n
( String/HTMLElement/Ext.Element constrainTo, [Object/Number pad], [Boolean inContent] )
Initializes the drag drop object's constraints to restrict movement to a certain element. ...

Initializes the drag drop object's constraints to restrict movement to a certain element.

\n\n

Usage:

\n\n
var dd = new Ext.dd.DDProxy(\"dragDiv1\", \"proxytest\",\n               { dragElId: \"existingProxyDiv\" });\ndd.startDrag = function(){\n    this.constrainTo(\"parent-id\");\n};\n
\n\n

Or you can initalize it using the Ext.Element object:

\n\n
Ext.get(\"dragDiv1\").initDDProxy(\"proxytest\", {dragElId: \"existingProxyDiv\"}, {\n    startDrag : function(){\n        this.constrainTo(\"parent-id\");\n    }\n});\n
\n

Parameters

  • constrainTo : String/HTMLElement/Ext.Element

    The element or element ID to constrain to.

    \n
  • pad : Object/Number (optional)

    Pad provides a way to specify \"padding\" of the constraints,\nand can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) or\nan object containing the sides to pad. For example: {right:10, bottom:10}

    \n
  • inContent : Boolean (optional)

    Constrain the draggable in the content box of the element (inside padding and borders)

    \n
Ext.dd.DDProxy
view source
( )
Creates the proxy element if it does not yet exist ...

Creates the proxy element if it does not yet exist

\n
Called when we are done dragging the object ...

Called when we are done dragging the object

\n

Parameters

  • e : Event

    the mouseup event

    \n
...
\n

Parameters

Returns a reference to the actual element to drag. ...

Returns a reference to the actual element to drag. By default this is\nthe same as the html element, but it can be assigned to another\nelement. An example of this can be found in Ext.dd.DDProxy

\n

Returns

  • HTMLElement

    the html element

    \n
Returns a reference to the linked element ...

Returns a reference to the linked element

\n

Returns

  • HTMLElement

    the html element

    \n
Returns the initial configuration passed to constructor when instantiating\nthis class. ...

Returns the initial configuration passed to constructor when instantiating\nthis class.

\n

Parameters

  • name : String (optional)

    Name of the config option to return.

    \n

Returns

  • Object/Mixed

    The full config object or a single config value\nwhen name parameter specified.

    \n
Finds the location the element should be placed if we want to move\nit to where the mouse location less the click offs...

Finds the location the element should be placed if we want to move\nit to where the mouse location less the click offset would place us.

\n

Parameters

  • iPageX : Number

    the X coordinate of the click

    \n
  • iPageY : Number

    the Y coordinate of the click

    \n
Normally the drag element is moved pixel by pixel, but we can specify\nthat it move a number of pixels at a time. ...

Normally the drag element is moved pixel by pixel, but we can specify\nthat it move a number of pixels at a time. This method resolves the\nlocation when we have it set up like this.

\n

Parameters

  • val : Number

    where we want to place the object

    \n
  • tickArray : Number[]

    sorted array of valid points

    \n

Returns

Called when this object is clicked ...

Called when this object is clicked

\n

Parameters

Executed when the linked element is available ...

Executed when the linked element is available

\n
...
\n

Parameters

Sets up the DragDrop object. ...

Sets up the DragDrop object. Must be called in the constructor of any\nExt.dd.DragDrop subclass

\n

Parameters

  • id : String

    the id of the linked element

    \n
  • sGroup : String

    the group of related items

    \n
  • config : Object

    configuration attributes

    \n
Initialize configuration for this class. ...

Initialize configuration for this class. a typical example:

\n\n
Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\n

Parameters

Returns

Ext.dd.DDProxy
view source
( )
Initialization for the drag frame element. ...

Initialization for the drag frame element. Must be called in the\nconstructor of all subclasses

\n
Initializes Targeting functionality only... ...

Initializes Targeting functionality only... the object does not\nget a mousedown handler.

\n

Parameters

  • id : String

    the id of the linked element

    \n
  • sGroup : String

    the group of related items

    \n
  • config : Object

    configuration attributes

    \n
Returns true if this instance is locked, or the drag drop mgr is locked\n(meaning that all drag/drop is disabled on th...

Returns true if this instance is locked, or the drag drop mgr is locked\n(meaning that all drag/drop is disabled on the page.)

\n

Returns

  • Boolean

    true if this obj or all drag/drop is locked, else\nfalse

    \n
Checks the tag exclusion list to see if this click should be ignored ...

Checks the tag exclusion list to see if this click should be ignored

\n

Parameters

  • node : HTMLElement

    the HTMLElement to evaluate

    \n

Returns

  • Boolean

    true if this is a valid tag type, false if not

    \n
Locks this instance ...

Locks this instance

\n
Override the onAvailable method to do what is needed after the initial\nposition was determined. ...

Override the onAvailable method to do what is needed after the initial\nposition was determined.

\n
( Object names, Object callback, Object scope )private
...
\n

Parameters

Abstract method called during the onMouseMove event while dragging an\nobject. ...

Abstract method called during the onMouseMove event while dragging an\nobject.

\n

Parameters

  • e : Event

    the mousemove event

    \n
Abstract method called when this item is dropped on another DragDrop\nobj ...

Abstract method called when this item is dropped on another DragDrop\nobj

\n

Parameters

  • e : Event

    the mouseup event

    \n
  • id : String/Ext.dd.DragDrop[]

    In POINT mode, the element\nid this was dropped on. In INTERSECT mode, an array of dd items this\nwas dropped on.

    \n
Abstract method called when this element fist begins hovering over\nanother DragDrop obj ...

Abstract method called when this element fist begins hovering over\nanother DragDrop obj

\n

Parameters

  • e : Event

    the mousemove event

    \n
  • id : String/Ext.dd.DragDrop[]

    In POINT mode, the element\nid this is hovering over. In INTERSECT mode, an array of one or more\ndragdrop items being hovered over.

    \n
Abstract method called when we are no longer hovering over an element ...

Abstract method called when we are no longer hovering over an element

\n

Parameters

  • e : Event

    the mousemove event

    \n
  • id : String/Ext.dd.DragDrop[]

    In POINT mode, the element\nid this was hovering over. In INTERSECT mode, an array of dd items\nthat the mouse is no longer over.

    \n
Abstract method called when this element is hovering over another\nDragDrop obj ...

Abstract method called when this element is hovering over another\nDragDrop obj

\n

Parameters

  • e : Event

    the mousemove event

    \n
  • id : String/Ext.dd.DragDrop[]

    In POINT mode, the element\nid this is hovering over. In INTERSECT mode, an array of dd items\nbeing hovered over.

    \n
Abstract method called when this item is dropped on an area with no\ndrop target ...

Abstract method called when this item is dropped on an area with no\ndrop target

\n

Parameters

  • e : Event

    the mouseup event

    \n
Called when a drag/drop obj gets a mousedown ...

Called when a drag/drop obj gets a mousedown

\n

Parameters

  • e : Event

    the mousedown event

    \n
Called when a drag/drop obj gets a mouseup ...

Called when a drag/drop obj gets a mouseup

\n

Parameters

  • e : Event

    the mouseup event

    \n
Removes this instance from the supplied interaction group ...

Removes this instance from the supplied interaction group

\n

Parameters

  • sGroup : String

    The group to drop

    \n
Unsets an invalid css class ...

Unsets an invalid css class

\n

Parameters

  • cssClass : String

    the class of the element(s) you wish to\nre-enable

    \n
Unsets an invalid handle id ...

Unsets an invalid handle id

\n

Parameters

  • id : String

    the id of the element to re-enable

    \n
Unsets an excluded tag name set by addInvalidHandleType ...

Unsets an excluded tag name set by addInvalidHandleType

\n

Parameters

  • tagName : String

    the type of element to unexclude

    \n
Must be called if you manually reposition a dd element. ...

Must be called if you manually reposition a dd element.

\n

Parameters

( Object config, Object applyIfNotSet )private
...
\n

Parameters

Sets the pointer offset. ...

Sets the pointer offset. You can call this directly to force the\noffset to be in a particular location (e.g., pass in 0,0 to set it\nto the center of the object)

\n

Parameters

  • iDeltaX : Number

    the distance from the left

    \n
  • iDeltaY : Number

    the distance from the top

    \n
Allows you to specify that an element other than the linked element\nwill be moved with the cursor during a drag ...

Allows you to specify that an element other than the linked element\nwill be moved with the cursor during a drag

\n

Parameters

  • id : String

    the id of the element that will be used to initiate the drag

    \n
Sets the drag element to the location of the mousedown or click event,\nmaintaining the cursor location relative to th...

Sets the drag element to the location of the mousedown or click event,\nmaintaining the cursor location relative to the location on the element\nthat was clicked. Override this if you want to place the element in a\nlocation other than where the cursor is.

\n

Parameters

  • iPageX : Number

    the X coordinate of the mousedown or drag event

    \n
  • iPageY : Number

    the Y coordinate of the mousedown or drag event

    \n
Allows you to specify a child of the linked element that should be\nused to initiate the drag operation. ...

Allows you to specify a child of the linked element that should be\nused to initiate the drag operation. An example of this would be if\nyou have a content div with text and links. Clicking anywhere in the\ncontent area would normally start the drag operation. Use this method\nto specify that an element inside of the content div is the element\nthat starts the drag operation.

\n

Parameters

  • id : String

    the id of the element that will be used to\ninitiate the drag.

    \n
Stores the initial placement of the linked element. ...

Stores the initial placement of the linked element.

\n

Parameters

  • diffX : Number

    the X offset, default 0

    \n
  • diffY : Number

    the Y offset, default 0

    \n
Allows you to set an element outside of the linked element as a drag\nhandle ...

Allows you to set an element outside of the linked element as a drag\nhandle

\n

Parameters

  • id : String

    the id of the element that will be used to initiate the drag

    \n
Configures the padding for the target zone in px. ...

Configures the padding for the target zone in px. Effectively expands\n(or reduces) the virtual object size for targeting calculations.\nSupports css-style shorthand; if only one parameter is passed, all sides\nwill have that padding, and if only two are passed, the top and bottom\nwill have the first param, the left and right the second.

\n

Parameters

Sets the start position of the element. ...

Sets the start position of the element. This is set when the obj\nis initialized, the reset when a drag is started.

\n

Parameters

  • pos : Object

    current position (from previous lookup)

    \n
By default, the element can be dragged any place on the screen. ...

By default, the element can be dragged any place on the screen. Use\nthis method to limit the horizontal travel of the element. Pass in\n0,0 for the parameters if you want to lock the drag to the y axis.

\n

Parameters

  • iLeft : Number

    the number of pixels the element can move to the left

    \n
  • iRight : Number

    the number of pixels the element can move to the\nright

    \n
  • iTickSize : Number (optional)

    parameter for specifying that the\nelement should move iTickSize pixels at a time.

    \n
Creates the array of horizontal tick marks if an interval was specified\nin setXConstraint(). ...

Creates the array of horizontal tick marks if an interval was specified\nin setXConstraint().

\n

Parameters

By default, the element can be dragged any place on the screen. ...

By default, the element can be dragged any place on the screen. Set\nthis to limit the vertical travel of the element. Pass in 0,0 for the\nparameters if you want to lock the drag to the x axis.

\n

Parameters

  • iUp : Number

    the number of pixels the element can move up

    \n
  • iDown : Number

    the number of pixels the element can move down

    \n
  • iTickSize : Number (optional)

    parameter for specifying that the\nelement should move iTickSize pixels at a time.

    \n
Creates the array of vertical tick marks if an interval was specified in\nsetYConstraint(). ...

Creates the array of vertical tick marks if an interval was specified in\nsetYConstraint().

\n

Parameters

Ext.dd.DDProxy
view source
( Number iPageX, Number iPageY )private
Resizes the drag frame to the dimensions of the clicked object, positions\nit over the object, and finally displays it ...

Resizes the drag frame to the dimensions of the clicked object, positions\nit over the object, and finally displays it

\n

Parameters

  • iPageX : Number

    X click position

    \n
  • iPageY : Number

    Y click position

    \n
Abstract method called after a drag/drop object is clicked\nand the drag or mousedown time thresholds have beeen met. ...

Abstract method called after a drag/drop object is clicked\nand the drag or mousedown time thresholds have beeen met.

\n

Parameters

Get the reference to the class from which this object was instantiated. ...

Get the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics() is scope-independent and it always returns the class from which it was called, regardless of what\nthis points to during run-time

\n\n
Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n
\n

Returns

toString method ...

toString method

\n

Returns

  • String

    string representation of the dd obj

    \n
Unlocks this instace ...

Unlocks this instace

\n
Removes all drag and drop hooks for this element ...

Removes all drag and drop hooks for this element

\n
Defined By

Static Methods

( Object config )privatestatic
...
\n

Parameters

...
\n

Parameters

( Object name, Object member )privatestatic
...
\n

Parameters

Add methods / properties to the prototype of this class. ...

Add methods / properties to the prototype of this class.

\n\n
Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.addMembers({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\n

Parameters

Add / override static properties of this class. ...

Add / override static properties of this class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n
\n

Parameters

Returns

( Object xtype )privatestatic
...
\n

Parameters

( Ext.Base fromClass, Array/String members ) : Ext.Baseprivatestatic
Borrow another class' members to the prototype of this class. ...

Borrow another class' members to the prototype of this class.

\n\n
Ext.define('Bank', {\n    money: '$$$',\n    printMoney: function() {\n        alert('$$$$$$$');\n    }\n});\n\nExt.define('Thief', {\n    ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\n

Parameters

  • fromClass : Ext.Base

    The class to borrow members from

    \n
  • members : Array/String

    The names of the members to borrow

    \n

Returns

Create a new instance of this Class. ...

Create a new instance of this Class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n
\n\n

All parameters are passed to the constructor of the class.

\n

Returns

Create aliases for existing prototype methods. ...

Create aliases for existing prototype methods. Example:

\n\n
Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\n

Parameters

( Object config )privatestatic
...
\n

Parameters

Get the current class' name in string format. ...

Get the current class' name in string format.

\n\n
Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\n

Returns

( )deprecatedstatic
Adds members to class. ...

Adds members to class.

\n
\n

This method has been deprecated since 4.1

\n

Use addMembers instead.

\n\n
\n
( Object name, Object mixinClass )privatestatic
Used internally by the mixins pre-processor ...

Used internally by the mixins pre-processor

\n

Parameters

( Object fn, Object scope )privatestatic
...
\n

Parameters

( Object members ) : Ext.Basedeprecatedstatic
Override members of this class. ...

Override members of this class. Overridden methods can be invoked via\ncallParent.

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n\n

As of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:

\n\n
Ext.define('My.CatOverride', {\n    override: 'My.Cat',\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n
\n\n

The above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).

\n
\n

This method has been deprecated since 4.1.0

\n

Use Ext.define instead

\n\n
\n

Parameters

  • members : Object

    The properties to add to this class. This should be\nspecified as an object literal containing one or more properties.

    \n

Returns

","subclasses":["Ext.dd.DragSource"],"name":"Ext.dd.DDProxy","alternateClassNames":[],"inheritdoc":null,"files":[{"href":"DDProxy.html#Ext-dd-DDProxy","filename":"DDProxy.js"}],"html_meta":{},"singleton":false,"id":"class-Ext.dd.DDProxy","statics":{"property":[{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"property","name":"$onExtended","id":"static-property-S-onExtended"},{"meta":{"static":true},"owner":"Ext.dd.DDProxy","tagname":"property","name":"dragElId","id":"static-property-dragElId"}],"event":[],"css_var":[],"method":[{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addConfig","id":"static-method-addConfig"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addInheritableStatics","id":"static-method-addInheritableStatics"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addMember","id":"static-method-addMember"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"addMembers","id":"static-method-addMembers"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"addStatics","id":"static-method-addStatics"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addXtype","id":"static-method-addXtype"},{"meta":{"private":true,"static":true},"owner":"Ext.Base","tagname":"method","name":"borrow","id":"static-method-borrow"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"create","id":"static-method-create"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"createAlias","id":"static-method-createAlias"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"extend","id":"static-method-extend"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"getName","id":"static-method-getName"},{"meta":{"deprecated":{"text":"Use {@link #addMembers} instead.","version":"4.1"},"static":true},"owner":"Ext.Base","tagname":"method","name":"implement","id":"static-method-implement"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"mixin","id":"static-method-mixin"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"onExtended","id":"static-method-onExtended"},{"meta":{"deprecated":{"text":"Use {@link Ext#define Ext.define} instead","version":"4.1.0"},"markdown":true,"static":true},"owner":"Ext.Base","tagname":"method","name":"override","id":"static-method-override"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"triggerExtended","id":"static-method-triggerExtended"}],"css_mixin":[],"cfg":[]},"requires":[]});