dojo/dnd/common (version 1.10)

Summary

TODOC

See the dojo/dnd/common reference documentation for more information.

Property Summary

Method Summary

  • _createNode(tag) returns a function, which creates an element of given tag (SPAN by default) and sets its innerHTML to given text
  • _createSpan(text) creates a SPAN element with given text as its innerHTML
  • _createTrTd(text) creates a TR/TD structure with given text as an innerHTML of TD
  • _defaultCreator(node) takes a parent node, and returns an appropriate creator function
  • getCopyKeyState(evt)
  • getUniqueId() returns a unique string for use with any DOM element
  • isFormElement(e) returns true if user clicked on a form element
  • manager() Returns the current DnD manager.

Properties

_defaultCreatorNodes
Defined by: dojo/dnd/Container
_empty
Defined by: dojo/dnd/common
_manager
Defined by: dojo/dnd/Source
_uniqueId
Defined by: dojo/dnd/common

Methods

_createNode(tag)
Defined by dojo/dnd/Container

returns a function, which creates an element of given tag (SPAN by default) and sets its innerHTML to given text

Parameter Type Description
tag String

a tag name or empty for SPAN

_createSpan(text)
Defined by dojo/dnd/Container

creates a SPAN element with given text as its innerHTML

Parameter Type Description
text String

a text for SPAN

_createTrTd(text)
Defined by dojo/dnd/Container

creates a TR/TD structure with given text as an innerHTML of TD

Parameter Type Description
text String

a text for TD

_defaultCreator(node)
Defined by dojo/dnd/Container

takes a parent node, and returns an appropriate creator function

Parameter Type Description
node Node

a container node

getCopyKeyState(evt)
Defined by dojo/dnd/common
Parameter Type Description
evt undefined
Returns:undefined
getUniqueId()
Defined by dojo/dnd/common

returns a unique string for use with any DOM element

Returns:string
isFormElement(e)
Defined by dojo/dnd/common

returns true if user clicked on a form element

Parameter Type Description
e Event
manager()
Defined by dojo/dnd/Manager

Returns the current DnD manager. Creates one if it is not created yet.

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