dijit/layout/TabContainer.js

  • Provides:

    • dijit.layout.TabContainer
  • dijit.layout.TabContainer

    • type
      Function
    • chains:
      • dijit.layout._TabContainerBase: (prototype)
      • dijit.layout._TabContainerBase: (call)
    • summary
      A Container with tabs to select each child (only one of which is displayed at a time).
    • description
      A TabContainer is a container that has multiple panes, but shows only
      one pane at a time.  There are a set of tabs corresponding to each pane,
      where each tab has the name (aka title) of the pane, and optionally a close button.
  • dijit.layout.TabContainer.useMenu

    • tags: const
    • type
      Boolean
    • summary
      True if a menu should be used to select tabs when they are too
      wide to fit the TabContainer, false otherwise.
  • dijit.layout.TabContainer.useSlider

    • tags: const
    • type
      Boolean
    • summary
      True if a slider should be used to select tabs when they are too
      wide to fit the TabContainer, false otherwise.
  • dijit.layout.TabContainer.controllerWidget

    • type
      String
    • summary
      An optional parameter to override the widget used to display the tab labels
  • dijit.layout.TabContainer._makeController

    • type
      Function
    • parameters:
      • srcNode: (typeof DomNode)
    • source: [view]
         var cls = this.baseClass + "-tabs" + (this.doLayout ? "" : " dijitTabNoLayout"),
          TabController = dojo.getObject(this.controllerWidget);


         return new TabController({
          id: this.id + "_tablist",
          dir: this.dir,
          lang: this.lang,
          tabPosition: this.tabPosition,
          doLayout: this.doLayout,
          containerId: this.id,
          "class": cls,
          nested: this.nested,
          useMenu: this.useMenu,
          useSlider: this.useSlider,
          tabStripClass: this.tabStrip ? this.baseClass + (this.tabStrip ? "":"No") + "Strip": null
         }, srcNode);
    • summary
      Instantiate tablist controller widget and return reference to it.
      Callback from _TabContainerBase.postCreate().
    • tags:
  • dijit.layout.TabContainer.postMixInProperties

    • type
      Function
    • source: [view]
         this.inherited(arguments);


         // Scrolling controller only works for horizontal non-nested tabs
         if(!this.controllerWidget){
          this.controllerWidget = (this.tabPosition == "top" || this.tabPosition == "bottom") && !this.nested ?
             "dijit.layout.ScrollingTabController" : "dijit.layout.TabController";
         }
    • summary
  • dijit.layout

    • type
      Object
    • summary
  • dijit

    • type
      Object
    • summary