Pivot.selectedItem property

Applies to Windows and Windows Phone

Gets or sets the PivotItem control in view within the Pivot control.

Syntax


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


var selectedItem = pivot.selectedItem;
pivot.selectedItem = selectedItem;

Property value

Type: WinJS.UI.PivotItem

The currently selected PivotItem control.

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 supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

Pivot

 

 

Show:
© 2014 Microsoft