dojo.dnd.Container
dojo.require("dojo.dnd.Container");
defined in dojo/dnd/Container.js
a constructor of the Container
parameter | type | description |
---|---|---|
node | Node | node or node's id to build the container on |
params | Object | a dict of parameters, recognized parameters are: |
FunctionsBack to top
removes all data items from the map

a creator function, which takes a data item, and returns an object like that: {node: newNode, data: usedData, type: arrayOfStrings}

prepares the object to be garbage-collected
iterates over a data map skipping members, which are present in the empty object (IE and/or 3rd-party libraries).
returns a list (an array) of all valid child nodes
inserts an array of new nodes before/after an anchor node


event processor for onmouseout

event processor for onmouseover
this function is called once, when mouse is out of our container
this function is called once, when mouse is over our container
event processor for onselectevent and ondragevent

collects valid child items and populate the map set up the real parent node
adds a class with prefix "dojoDndItem"
changes a named state to new state value
gets a child, which is under the mouse at the moment, or null

adds all necessary data to the output of the user-supplied creator function
removes a class with prefix "dojoDndItem"
PropertiesBack to top
node or node's id to build the container on
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)