dijit/tree/_dndContainer (version 1.10)

Summary

This is a base class for dijit/tree/_dndSelector, and isn't meant to be used directly. It's modeled after dojo/dnd/Container.

Usage

var foo = new _dndContainer(tree,params);
dijit/tree/_dndContainer
Parameter Type Description
tree Node

Node or node's id to build the container on

params Object

A dict of parameters, which gets mixed into the object

See the dijit/tree/_dndContainer reference documentation for more information.

Property Summary

  • currentThe currently hovered TreeNode.

Method Summary

  • _addItemClass(node,type) Adds a class with prefix "dojoDndItem"
  • _changeState(type,newState) Changes a named state to new state value
  • _removeItemClass(node,type) Removes a class with prefix "dojoDndItem"
  • destroy() Prepares this object to be garbage-collected

Event Summary

  • onMouseOut(widget,evt) Called when mouse is moved away from a TreeNode
  • onMouseOver(widget,evt) Called when mouse is moved over a TreeNode
  • onOutEvent() This function is called once, when mouse is out of our container
  • onOverEvent() This function is called once, when mouse is over our container

Properties

current

The currently hovered TreeNode. Not set to anything for keyboard operation. (TODO: change?)

Methods

_addItemClass(node,type)

Adds a class with prefix "dojoDndItem"

Parameter Type Description
node Node

A node

type String

A variable suffix for a class name

_changeState(type,newState)

Changes a named state to new state value

Parameter Type Description
type String

A name of the state to change

newState String

new state

_removeItemClass(node,type)

Removes a class with prefix "dojoDndItem"

Parameter Type Description
node Node

A node

type String

extension

destroy()

Prepares this object to be garbage-collected

Events

onMouseOut(widget,evt)

Called when mouse is moved away from a TreeNode

Parameter Type Description
widget TreeNode
evt Event
onMouseOver(widget,evt)

Called when mouse is moved over a TreeNode

Parameter Type Description
widget TreeNode
evt Event
onOutEvent()

This function is called once, when mouse is out of our container

onOverEvent()

This function is called once, when mouse is over our container

Error in the documentation? Can’t find what you are looking for? Let us know!