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

dijit/_base/manager.js

  • Provides:

    • dijit._base.manager
  • dijit.defaultDuration

    • type
      Integer
    • summary
      The default animation speed (in ms) to use for all Dijit
      transitional animations, unless otherwise specified
      on a per-instance basis. Defaults to 200, overrided by
      <code>djConfig.defaultDuration</code>
  • dijit.WidgetSet

    • type
      Function
    • summary
      A set of widgets indexed by id. A default instance of this class is
      available as <code>dijit.registry</code>
    • example
      Create a small list of widgets:
      	var ws = new dijit.WidgetSet();
      	ws.add(dijit.byId("one"));
       	ws.add(dijit.byId("two"));
      	// destroy both:
      	ws.forEach(function(w){ w.destroy(); });
    • example
      Using dijit.registry:
      	dijit.registry.forEach(function(w){ /* do something */ });
  • dijit.WidgetSet.constructor

    • constructor - constructor
    • type
      Function
  • dijit.WidgetSet.add

    • parameters:
      • widget: (typeof dijit._Widget)
        Any dijit._Widget subclass.
    • summary
      Add a widget to this list. If a duplicate ID is detected, a error is thrown.
    • type
      Function
  • dijit.WidgetSet.remove

    • parameters:
      • id: (typeof String)
    • summary
      Remove a widget from this WidgetSet. Does not destroy the widget; simply
      removes the reference.
    • type
      Function
  • dijit.WidgetSet.forEach

    • parameters:
      • func: (typeof Function)
        A callback function to run for each item. Is passed the widget, the index
        in the iteration, and the full hash, similar to <code>dojo.forEach</code>.
      • thisObj: (typeof Object)
        An optional scope parameter
    • returns
      dijit.WidgetSet
    • summary
      Call specified function for each widget in this set.
    • example
      Using the default `dijit.registry` instance:
      	dijit.registry.forEach(function(widget){
      		console.log(widget.declaredClass);
      	});
    • return_summary
      Returns self, in order to allow for further chaining.
    • type
      Function
  • dijit.WidgetSet.filter

    • parameters:
      • filter: (typeof Function)
        Callback function to test truthiness. Is passed the widget
        reference and the pseudo-index in the object.
      • thisObj: (typeof Object)
        Option scope to use for the filter function.
    • returns
      dijit.WidgetSet
    • summary
      Filter down this WidgetSet to a smaller new WidgetSet
      Works the same as <code>dojo.filter</code> and <code>dojo.NodeList.filter</code>
    • example
      Arbitrary: select the odd widgets in this list
      	dijit.registry.filter(function(w, i){
      		return i % 2 == 0;
      	}).forEach(function(w){ /* odd ones */ });
    • type
      Function
  • dijit.WidgetSet.byId

    • parameters:
      • id: (typeof String)
    • returns
      dijit._Widget
    • summary
      Find a widget in this list by it's id.
    • example
      Test if an id is in a particular WidgetSet
       var ws = new dijit.WidgetSet();
       ws.add(dijit.byId("bar"));
       var t = ws.byId("bar") // returns a widget
       var x = ws.byId("foo"); // returns undefined
    • type
      Function
  • dijit.WidgetSet.byClass

    • parameters:
      • cls: (typeof String)
        The Class to scan for. Full dot-notated string.
    • returns
      dijit.WidgetSet
    • summary
      Reduce this widgetset to a new WidgetSet of a particular <code>declaredClass</code>
    • example
      Find all `dijit.TitlePane`s in a page:
      	dijit.registry.byClass("dijit.TitlePane").forEach(function(tp){ tp.close(); });
    • type
      Function
  • dijit.WidgetSet.toArray

    • returns
      dijit._Widget[]
    • summary
      Convert this WidgetSet into a true Array
    • example
      Work with the widget .domNodes in a real Array
      	dojo.map(dijit.registry.toArray(), function(w){ return w.domNode; });
    • type
      Function
  • dijit.WidgetSet.map

    • parameters:
      • func: (typeof Function)
      • thisObj: (typeof Object)
    • returns
      Array
    • summary
      Create a new Array from this WidgetSet, following the same rules as <code>dojo.map</code>
    • example
      	var nodes = dijit.registry.map(function(w){ return w.domNode; });
    • return_summary
      A new array of the returned values.
    • type
      Function
  • dijit.WidgetSet.every

    • parameters:
      • func: (typeof Function)
        A callback function run for every widget in this list. Exits loop
        when the first false return is encountered.
      • thisObj: (typeof Object)
        Optional scope parameter to use for the callback
    • returns
      Boolean
    • summary
      A synthetic clone of <code>dojo.every</code> acting explicitly on this WidgetSet
    • type
      Function
  • dijit.WidgetSet.some

    • parameters:
      • func: (typeof Function)
        A callback function run for every widget in this list. Exits loop
        when the first true return is encountered.
      • thisObj: (typeof Object)
        Optional scope parameter to use for the callback
    • returns
      Boolean
    • summary
      A synthetic clone of <code>dojo.some</code> acting explictly on this WidgetSet
    • type
      Function
  • dijit.WidgetSet._hash

    • type
      Object
  • dijit.WidgetSet.length

    • type
      Number
  • dijit.registry

    • summary
      A list of widgets on a page.
    • description
      Is an instance of `dijit.WidgetSet`
    • type
      Object
  • dijit.registry._hash

    • alias - dijit.registry._hash
  • dojo.attr

    • alias - dojo.attr
  • dojo.hasAttr

    • alias - dojo.hasAttr
  • dojo.style

    • alias - dojo.style
  • dijit.byId

    • parameters:
      • id: (typeof String|dijit._Widget)
    • returns
      dijit._Widget
    • summary
      Returns a widget by it's id, or if passed a widget, no-op (like dojo.byId())
    • type
      Function
  • dijit.getUniqueId

    • parameters:
      • widgetType: (typeof String)
    • returns
      String
    • summary
      Generates a unique id for a given widgetType
    • type
      Function
  • dijit.findWidgets

    • parameters:
      • root: (typeof DomNode)
    • summary
      Search subtree under root returning widgets found.
      Doesn't search for nested widgets (ie, widgets inside other widgets).
    • type
      Function
  • dijit._destroyAll

    • summary
      Code to destroy all widgets and do other cleanup on page unload
    • type
      Function
  • dijit.byNode

    • parameters:
      • node: (typeof DOMNode)
    • returns
      dijit._Widget
    • summary
      Returns the widget corresponding to the given DOMNode
    • type
      Function
  • dijit.getEnclosingWidget

    • parameters:
      • node: (typeof DOMNode)
    • summary
      Returns the widget whose DOM tree contains the specified DOMNode, or null if
      the node is not contained within the DOM tree of any widget
    • type
      Function
  • dijit._isElementShown

    • parameters:
      • elem: (typeof Element)
    • type
      Function
  • dijit.hasDefaultTabStop

    • parameters:
      • elem: (typeof Element)
    • summary
      Tests if element is tab-navigable even without an explicit tabIndex setting
    • type
      Function
  • dijit.isTabNavigable

    • parameters:
      • elem: (typeof Element)
    • returns
      boolean
    • summary
      Tests if an element is tab-navigable
    • type
      Function
  • dijit._getTabNavigable

    • parameters:
      • root: (typeof DOMNode)
    • summary
      Finds descendants of the specified root node.
    • description
      Finds the following descendants of the specified root node:
      * the first tab-navigable element in document order
      without a tabIndex or with tabIndex="0"
      * the last tab-navigable element in document order
      without a tabIndex or with tabIndex="0"
      * the first element in document order with the lowest
      positive tabIndex value
      * the last element in document order with the highest
      positive tabIndex value
    • type
      Function
  • dijit.getFirstInTabbingOrder

    • parameters:
      • root: (typeof String|DOMNode)
    • returns
      DomNode
    • summary
      Finds the descendant of the specified root node
      that is first in the tabbing order
    • type
      Function
  • dijit.getLastInTabbingOrder

    • parameters:
      • root: (typeof String|DOMNode)
    • returns
      DomNode
    • summary
      Finds the descendant of the specified root node
      that is last in the tabbing order
    • type
      Function
  • dijit._base.manager

    • type
      Object
  • dijit._base

    • type
      Object
  • dijit

    • type
      Object