dojox/widget/TitleGroup.js

  • Provides:

    • dojox.widget.TitleGroup
  • Requires:

    • dijit._Widget in common in project dijit
    • dijit.TitlePane in common in project dijit
  • dojox.widget.TitleGroup

    • type
      Function
    • chains:
      • dijit._Widget: (prototype)
      • dijit._Widget: (call)
    • summary
      A container which controls a series of `dijit.TitlePane`s,
      allowing one to be visible and hiding siblings
    • description
      A container which controls a series of `dijit.TitlePane`s,
      allowing one to be visible and hiding siblings. Behaves similarly
      to a `dijit.layout.AccordionContainer` in that the children
      are all stacked, though merges the TitlePane behavior of
      variable height
    • example
      
      	var group = new dojox.widget.TitleGroup().placeAt(dojo.body());
      	new dijit.TitlePane({ title:"One" }, "fromsource").placeAt(group);
      	new dijit.TitlePane({ title:"Remote", href:"foo.html" }).placeAt(group);
  • dojox.widget.TitleGroup.class

    • summary
  • dojox.widget.TitleGroup.addChild

    • type
      Function
    • parameters:
      • widget: (typeof dijit.TitlePane)
        A widget reference to add
      • position: (typeof String?|Int)
        An optional index or position to pass. defaults to "last"
    • source: [view]
         return widget.placeAt(this.domNode, position); // dijit.TitlePane
    • summary
      Add a passed widget reference to this container at an optional
      position index.
    • returns
      dijit.TitlePane
  • dojox.widget.TitleGroup.removeChild

    • type
      Function
    • parameters:
      • widget: (typeof )
    • source: [view]
         this.domNode.removeChild(widget.domNode);
         return widget;
    • summary
      Remove the passed widget from this container. Does not destroy
      child.
  • dojox.widget.TitleGroup.selectChild

    • type
      Function
    • parameters:
      • widget: (typeof )
    • source: [view]
         widget && dojo.query("> .dijitTitlePane", this.domNode).forEach(function(n){
          var tp = dijit.getEnclosingWidget(n);
          tp && tp !== widget && tp.open && tp.set("open", false);
         });
         return widget; // dijit.TitlePane
    • summary
      close all found titlePanes within this group, excluding
      the one the we pass to select
    • returns
      dijit.TitlePane
  • tp._dxfindParent

    • summary
  • lookup

    • type
      Function
    • source: [view]
      dojo.provide("dojox.widget.TitleGroup");


      dojo.require("dijit._Widget");
      dojo.require("dijit.TitlePane");


      (function(d){

       
       var tp = dijit.TitlePane.prototype,
        lookup = function(){
         // generic handler function for click and keypress
         var parent = this._dxfindParent && this._dxfindParent();
         parent && parent.selectChild(this);
    • summary
  • dojox.widget

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary