dojo.dnd.Source
dojo.require("dojo.dnd.Source");
defined in dojo/dnd/Source.js
a constructor of the Source
Usage
parameter | type | description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
node | DOMNode|String | or node's id to build the source on | ||||||||||||||||||
params | dojo.dnd.__SourceArgs | Optional. any property of this class may be configured via the params object which is mixed-in to the `dojo.dnd.Source` instance a dict of parameters for DnD Source configuration. Note that any property on Source elements may be configured, but this is the short-list
|

ConstructorsBack to top
Defined by dojo.dnd.Container, dojo.dnd.Selector
inserts new data items (see Container's insertNodes method for details)

FunctionsBack to top
checks, if the target can accept nodes from this source
Returns true, if we need to copy items, false to move. It is separated to be overwritten dynamically, if needed.

Defined by dojo.dnd.Container
a creator function, which takes a data item, and returns an object like that: {node: newNode, data: usedData, type: arrayOfStrings}

Overrides dojo.dnd.Container, dojo.dnd.Selector
prepares the object to be garbage-collected
Defined by dojo.dnd.Container
iterates over a data map skipping members, which are present in the empty object (IE and/or 3rd-party libraries).

Overrides dojo.dnd.Container, dojo.dnd.Selector
topic event processor for /dnd/cancel, called to cancel the DnD operation
topic event processor for /dnd/source/over, called when detected a current source
topic event processor for /dnd/start, called to initiate the DnD operation
Overrides dojo.dnd.Container, dojo.dnd.Selector
this function is called once, when mouse is out of our container
Overrides dojo.dnd.Container, dojo.dnd.Selector
this function is called once, when mouse is over our container
Defined by dojo.dnd.Container
associates a data item with its key (id)

Defined by dojo.dnd.Container
collects valid child items and populate the map set up the real parent node
Defined by dojo.dnd.Container
adds a class with prefix "dojoDndItem"
Defined by dojo.dnd.Container
changes a named state to new state value
Defined by dojo.dnd.Container
gets a child, which is under the mouse at the moment, or null
checks if user clicked on "approved" items

changes source's state based on "copy" status
assigns a class to the current target anchor based on "before" status

Overrides dojo.dnd.Container, dojo.dnd.Selector
adds all necessary data to the output of the user-supplied creator function
Defined by dojo.dnd.Selector
Defined by dojo.dnd.Container
removes a class with prefix "dojoDndItem"
removes a class of the current target anchor based on "before" status

PropertiesBack to top
Defined by dojo.dnd.Selector
Defined by dojo.dnd.Container
Overrides dojo.dnd.Container
Defined by dojo.dnd.Container
Defined by dojo.dnd.Container
Defined by dojo.dnd.Container
Defined by dojo.dnd.Selector
Defined by dojo.dnd.Container
Defined by dojo.dnd.Selector
Defined by dojo.dnd.Selector
Defined by dojo.dnd.Selector
allows selection of only one element, if true the rest of parameters are passed to the container
Overrides dojo.dnd.Container
don't start the drag operation, if clicked on form elements _skipStartup: Boolean: skip startup(), which collects children, for deferred initialization (this is used in the markup mode)