共用方式為


WinJS.UI.TabContainer object

Prevents a Document Object Model (DOM) sub-tree from receiving tab navigations and focus.

Syntax

var object = new WinJS.UI.TabContainer(element, object);

Members

The TabContainer object has these types of members:

  • Constructors
  • Methods
  • Properties

Constructors

The TabContainer object has these constructors.

Constructor Description
TabContainer

Creates a new TabContainer.

 

Methods

The TabContainer object has these methods.

Method Description
dispose

Releases resources held by this TabContainer. Call this method when the TabContainer is no longer needed. After calling this method, the TabContainer becomes unusable.

 

Properties

The TabContainer object has these properties.

Property Access type Description

childFocus

Read/write

Gets or sets the child DOM element that receives tab focus.

tabIndex

Read/write

Gets or sets the tab order of the control within its container.

 

Remarks

When you create a TabContainer, the host element and the DOM children of the host element no longer receive tab navigations or tab focus.

You can optionally designate a child element to receive focus when you tab to this control by setting the childFocus property.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI