dnd source handling plotted zone to show the dropping area
Parameter | Type | Description |
---|---|---|
node | Node | |
params | Object |
Indicates whether to allow dnd item nodes to be nested within other elements. By default this is false, indicating that only direct children of the container can be draggable dnd item nodes
Map from an item's id (which is also the DOMNode's id) to the dojo/dnd/Container.Item itself.
The set of id's that are currently selected, such that this.selection[id] == 1 if the node w/that id is selected. Can iterate over selected node's id's like:
for(var id in this.selection)
adds a class with prefix "dojoDndItem"
Parameter | Type | Description |
---|---|---|
node | Node | a node |
type | String | a variable suffix for a class name |
Parameter | Type | Description |
---|---|---|
node | undefined |
Parameter | Type | Description |
---|---|---|
node | undefined |
Calculate each position of children
Parameter | Type | Description |
---|---|---|
height | Boolean |
changes a named state to new state value
Parameter | Type | Description |
---|---|---|
type | String | a name of the state to change |
newState | String | new state |
gets a child, which is under the mouse at the moment, or null
Parameter | Type | Description |
---|---|---|
e | Event | a mouse event |
Checks if user clicked on "approved" items.
Parameter | Type | Description |
---|---|---|
e | Event |
changes source's state based on "copy" status
Parameter | Type | Description |
---|---|---|
copy | undefined |
Assigns a class to the current target anchor based on "before" status
Parameter | Type | Description |
---|---|---|
before | Boolean |
adds all necessary data to the output of the user-supplied creator function
Parameter | Type | Description |
---|---|---|
item | Container.Item | |
hint | String |
removes a class with prefix "dojoDndItem"
Parameter | Type | Description |
---|---|---|
node | Node | a node |
type | String[] | Type(s) of this item, by default this is ["text"] |
Returns the sum of the passed property on all ancestors of node.
Parameter | Type | Description |
---|---|---|
node | undefined | |
prop | undefined |
Removes a class of the current target anchor based on "before" status.
checks if the target can accept nodes from this source
Parameter | Type | Description |
---|---|---|
source | Object | the source which provides items |
nodes | Array | the list of transferred items |
Returns true if we need to copy items, false to move. It is separated to be overwritten dynamically, if needed.
Parameter | Type | Description |
---|---|---|
keyPressed | Boolean | the "copy" key was pressed |
self | Boolean |
Optional optional flag that means that we are about to drop on itself |
removes a data item from the map by its key (id)
Parameter | Type | Description |
---|---|---|
key | String |
iterates over a data map skipping members that are present in the empty object (IE and/or 3rd-party libraries).
Parameter | Type | Description |
---|---|---|
f | Function | |
o | Object |
Optional
|
iterates over selected items;
see dojo/dnd/Container.forInItems()
for details
Parameter | Type | Description |
---|---|---|
f | Function | |
o | Object |
Optional
|
Return one or more widget selected during the drag.
Parameter | Type | Description |
---|---|---|
node | Node |
returns a data item by its key (id)
Parameter | Type | Description |
---|---|---|
key | String |
Insert the dashed zone at the right place
Parameter | Type | Description |
---|---|---|
before | Boolean |
Inserts new data items (see Dojo Container's insertNodes method for details).
Parameter | Type | Description |
---|---|---|
addSelected | Boolean | |
data | Array | |
before | Boolean | |
anchor | Node |
test if this node can be accepted
Parameter | Type | Description |
---|---|---|
node | Node |
Parameter | Type | Description |
---|---|---|
params | undefined | |
node | undefined | |
Ctor | undefined |
Parameter | Type | Description |
---|---|---|
type | undefined | |
listener | undefined |
set an item as selectable
Parameter | Type | Description |
---|---|---|
node | Node | |
isSelectable | Boolean |
set the position of the drop indicator
Parameter | Type | Description |
---|---|---|
e | Event |
associates a data item with its key (id)
Parameter | Type | Description |
---|---|---|
key | String | |
data | Container.Item |
sync up the node list with the data map
sync up the node list with the data map
Called to finish the DnD operation
Parameter | Type | Description |
---|---|---|
source | undefined | |
nodes | undefined | |
copy | undefined | |
target | undefined |
topic event processor for /dnd/source/over, called when detected a current source
Parameter | Type | Description |
---|---|---|
source | Object | the source which has the mouse over it |
Called to initiate the DnD operation.
Parameter | Type | Description |
---|---|---|
source | Object | |
nodes | Array | |
copy | Object |
called during the active DnD operation, when items are dragged away from this target, and it is not disabled
called during the active DnD operation, when items are dragged over this target, and it is not disabled
called only on the current target, when drop is performed
Parameter | Type | Description |
---|---|---|
source | Object | the source which provides items |
nodes | Array | the list of transferred items |
copy | Boolean | copy items, if true, move items otherwise |
called only on the current target, when drop is performed from an external source
Parameter | Type | Description |
---|---|---|
source | Object | the source which provides items |
nodes | Array | the list of transferred items |
copy | Boolean | copy items, if true, move items otherwise |
called only on the current target, when drop is performed from the same target/source
Parameter | Type | Description |
---|---|---|
nodes | Array | the list of transferred items |
copy | Boolean | copy items, if true, move items otherwise |
Event processor for onmousedown.
Parameter | Type | Description |
---|---|---|
e | Event |
Event processor for onmousemove
Parameter | Type | Description |
---|---|---|
e | undefined |
event processor for onmouseout
Parameter | Type | Description |
---|---|---|
e | Event | mouse event |
event processor for onmouseover or touch, to mark that element as the current element
Parameter | Type | Description |
---|---|---|
e | Event | mouse event |
Event processor for onmouseup.
Parameter | Type | Description |
---|---|---|
e | Event |
event processor for onselectevent and ondragevent
Parameter | Type | Description |
---|---|---|
e | Event | mouse event |