Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Pivot.selectedIndex property

Applies to Windows and Windows Phone

Gets or sets the index of the PivotItem control in view.

Syntax


<div data-win-control="WinJS.UI.Pivot" data-win-options="{ selectedIndex : value}" />


var selectedIndex = pivot.selectedIndex;
pivot.selectedIndex = selectedIndex;

Property value

Type: Number

The index of the currently selected PivotItem control as a number.

Remarks

Note   For Windows, this member is available starting with the WinJS 3.0 library. The WinJS 3.0 library is available via CDN, package manager, or website download but currently not through the Windows Store as a Windows Store framework package.
 

Requirements

Minimum WinJS version

Phone WinJS 2.1

Namespace

WinJS.UI

See also

Pivot

 

 

Show: