Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojo/dnd/Selector.js

  • Provides:

    • dojo.dnd.Selector
  • Requires:

    • dojo.dnd.common in common
    • dojo.dnd.Container in common
  • dojo.dnd.__SelectorArgs

    • type
      Function
    • chains:
      • dojo.dnd.__ContainerArgs: (prototype)
      • dojo.dnd.__ContainerArgs: (call)
  • dojo.dnd.__SelectorArgs.singular

    • type
      Boolean
    • summary
      allows selection of only one element, if true
  • dojo.dnd.__SelectorArgs.autoSync

    • type
      Boolean
    • summary
      autosynchronizes the source with its list of DnD nodes,
  • dojo.dnd.Selector

    • type
      Function
    • chains:
      • dojo.dnd.Container: (prototype)
      • dojo.dnd.Container: (call)
    • parameters:
      • node: (typeof Node||String)
        node or node's id to build the selector on
      • params: (typeof dojo.dnd.__SelectorArgs)
        a dictionary of parameters
    • summary
      a Selector object, which knows how to select its children
  • dojo.dnd.Selector.selection

    • type
      Set<String>
    • summary
      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)
  • dojo.dnd.Selector.constructor

    • constructor - constructor
    • type
      Function
    • parameters:
      • node: (typeof Node||String)
        node or node's id to build the selector on
      • params: (typeof dojo.dnd.__SelectorArgs)
        a dictionary of parameters
    • summary
      constructor of the Selector
  • dojo.dnd.Selector.singular

    • type
      bool
  • dojo.dnd.Selector.getSelectedNodes

    • returns
      NodeList
    • summary
      returns a list (an array) of selected nodes
    • type
      Function
  • dojo.dnd.Selector.selectNone

    • returns
      self
    • summary
      unselects all items
    • type
      Function
  • dojo.dnd.Selector.selectAll

    • returns
      self
    • summary
      selects all items
    • type
      Function
  • dojo.dnd.Selector.deleteSelectedNodes

    • returns
      self
    • summary
      deletes all selected items
    • type
      Function
  • dojo.dnd.Selector.anchor

    • type
      Object
  • dojo.dnd.Selector.forInSelectedItems

    • parameters:
      • f: (typeof Function)
      • o: (typeof Object)
    • summary
      iterates over selected items;
      see <code>dojo.dnd.Container.forInItems()</code> for details
    • type
      Function
  • dojo.dnd.Selector.sync

    • returns
      self
    • summary
      sync up the node list with the data map
    • type
      Function
  • dojo.dnd.Selector.insertNodes

    • parameters:
      • addSelected: (typeof Boolean)
        all new nodes will be added to selected items, if true, no selection change otherwise
      • data: (typeof Array)
        a list of data items, which should be processed by the creator function
      • before: (typeof Boolean)
        insert before the anchor, if true, and after the anchor otherwise
      • anchor: (typeof Node)
        the anchor node to be used as a point of insertion
    • returns
      self
    • summary
      inserts new data items (see <code>dojo.dnd.Container.insertNodes()</code> method for details)
    • type
      Function
  • dojo.dnd.Selector._normalizedCreator

    • parameters:
      • item
      • hint
    • type
      Function
  • dojo.dnd.Selector.destroy

    • summary
      prepares the object to be garbage-collected
    • type
      Function
  • dojo.dnd.Selector.markupFactory

    • parameters:
      • params
      • node
    • type
      Function
  • dojo.dnd.Selector.onMouseDown

    • parameters:
      • e: (typeof Event)
        mouse event
    • summary
      event processor for onmousedown
    • type
      Function
  • dojo.dnd.Selector.simpleSelection

    • type
      bool
  • dojo.dnd.Selector.onMouseUp

    • parameters:
      • e: (typeof Event)
        mouse event
    • summary
      event processor for onmouseup
    • type
      Function
  • dojo.dnd.Selector.onMouseMove

    • parameters:
      • e: (typeof Event)
        mouse event
    • type
      Function
  • dojo.dnd.Selector.onOverEvent

    • summary
      this function is called once, when mouse is over our container
    • type
      Function
  • dojo.dnd.Selector.onmousemoveEvent

    • type
      Object
  • dojo.dnd.Selector.onOutEvent

    • summary
      this function is called once, when mouse is out of our container
    • type
      Function
  • dojo.dnd.Selector._removeSelection

    • returns
      self
    • summary
      unselects all items
    • type
      Function
  • dojo.dnd.Selector._removeAnchor

    • returns
      self
    • type
      Function
  • dojo.dnd.Selector.autoSync

  • dojo.dnd

    • type
      Object
  • dojo

    • type
      Object