Constructordojo.dnd.Selector

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

a constructor of the Selector

Usage

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

Jump to PropertiesJump to FunctionsConstructorsBack to top

ConstructorinsertNodes(addSelected: Boolean, data: Array, before: Boolean, anchor: Node)
inserts new data items (see Container's insertNodes method for details)

Jump to PropertiesJump to ConstructorsFunctionsBack to top

Defined by dojo.dnd.Container
removes all data items from the map
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}
deletes all selected items
Defined by dojo.dnd.Container
removes a data item from the map by its key (id)
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).
Defined by dojo.dnd.Container
returns a list (an array) of all valid child nodes
Defined by dojo.dnd.Container
returns a data item by its key (id)
returns a list (an array) of selected nodes
FunctionmarkupFactory(params, node)
event processor for onmousedown
event processor for onmousemove
Defined by dojo.dnd.Container
event processor for onmouseout
Defined by dojo.dnd.Container
event processor for onmouseover
event processor for onmouseup
this function is called once, when mouse is out of our container
this function is called once, when mouse is over our container
Defined by dojo.dnd.Container
event processor for onselectevent and ondragevent
selects all items
unselects all items
FunctionsetItem(key: String, data: Object)
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
Function_addItemClass(node: Node, type: String)
Defined by dojo.dnd.Container
adds a class with prefix "dojoDndItem"
Function_changeState(type: String, newState: String)
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
Function_normalizedCreator(item, hint)
adds all necessary data to the output of the user-supplied creator function
Defined by dojo.dnd.Container
removes a class with prefix "dojoDndItem"
unselects all items

Jump to FunctionsJump to ConstructorsPropertiesBack to top

Defined by dojo.dnd.Container
node or node's id to build the container on
allows selection of only one element, if true the rest of parameters are passed to the container
Defined by 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)