Constructordijit._tree.dndTarget

dojo.require("dijit._tree.dndSource");
defined in dijit/_tree/dndSource.js

a constructor of the Target --- see the Source constructor for details

Usage

function (node, params) (view source)
parametertypedescription
node  
params  

Jump to PropertiesFunctionsBack to top

FunctioncheckAcceptance(source: Object, nodes: Array)
checks, if the target can accept nodes from this source
FunctioncheckItemAcceptance(node, source)
stub funciton to be overridden if one wants to check for the ability to drop at the node/item level
FunctioncopyState(keyPressed: Boolean)
Returns true, if we need to copy items, false to move. It is separated to be overwritten dynamically, if needed.
prepares the object to be garbage-collected
returns a data item by its key (id) console.log("Container getItem()", arguments,this.map, this.map[key], this.selection[key]);
FunctioninsertItems(item, parent)
inserts new data items (see Container's insertNodes method for details) we actually need to add things to the store here instead of adding noes to the tree directly
topic event processor for /dnd/cancel, called to cancel the DnD operation
FunctiononDndDrop(source: Object, nodes: Array, copy: Boolean)
Topic event processor for /dnd/drop, called to finish the DnD operation.. Updates data store items according to where node was dragged from and dropped to. The tree will then respond to those data store updates and redraw itself.
topic event processor for /dnd/source/over, called when detected a current source
FunctiononDndStart(source: Object, nodes: Array, copy: Boolean)
topic event processor for /dnd/start, called to initiate the DnD operation
event processor for onmousedown
event processor for onmousemove
event processor for onmouseout
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
unselects all items
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
changes source's state based on "copy" status
assigns a class to the current target anchor based on "before" status
removes a class with prefix "dojoDndItem"
unselects all items
removes a class of the current target anchor based on "before" status

Jump to FunctionsPropertiesBack to top

list of accepted types (text strings) for a target; assumed to be ["text"] if omitted horizontal: Boolean: a horizontal container, if true, vertical otherwise or when omitted copyOnly: Boolean: always copy items, if true, use a state of Ctrl key otherwise skipForm: Boolean: don't start the drag operation, if clicked on form elements the rest of parameters are passed to the selector
can be used as a DnD source, if true; assumed to be "true" if omitted
node or node's id to build the container on