Constructordojo.dnd.Container

dojo.require("dojo.dnd.Container");
defined in dojo/dnd/Container.js

a constructor of the Container

Usage

function (/*Node*/ node, /*Object*/ params) (view source)
parametertypedescription
nodeNodenode or node's id to build the container on
paramsObjecta dict of parameters, recognized parameters are:

Jump to PropertiesFunctionsBack 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}
removes a data item from the map by its key (id)
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
returns a data item by its key (id)
FunctioninsertNodes(data: Array, before: Boolean, anchor: Node)
inserts an array of new nodes before/after an anchor node
FunctionmarkupFactory(params, 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
FunctionsetItem(key: String, data: Object)
associates a data item with its key (id)
collects valid child items and populate the map set up the real parent node
Function_addItemClass(node: Node, type: String)
adds a class with prefix "dojoDndItem"
Function_changeState(type: String, newState: String)
changes a named state to new state value
gets a child, which is under the mouse at the moment, or null
Function_normalizedCreator(item, hint)
adds all necessary data to the output of the user-supplied creator function
removes a class with prefix "dojoDndItem"

Jump to FunctionsPropertiesBack 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)