EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

WinJS.UI.WinJS.UI.PivotItem object

Applies to Windows and Windows Phone

Creates an item within a Pivot control.

Syntax


<div data-win-control="WinJS.UI.PivotItem"></div>


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

Members

The PivotItem object has these types of members:

Constructors

The PivotItem object has these constructors.

ConstructorDescription
PivotItem

Creates a new PivotItem control

 

Methods

The PivotItem object has these methods.

MethodDescription
dispose

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

 

Properties

The PivotItem object has these properties.

PropertyAccess typeDescription

contentElement

Read-only

Gets the DOM element that hosts the PivotItem control's content.

element

Read-only

Gets the DOM element that hosts the PivotItem control.

header

Read/write

Gets or sets the header for this PivotItem.

 

Remarks

Styling the PivotItem

CSS classes

To customize the PivotItem, you can define your own styles for these Cascading Style Sheets (CSS) classes (defined by the Windows Library for JavaScript style sheets):

CSS class Description

win-pivot-item

Styles the PivotItem control.

win-pivot-item-content

Styles the HTML content within the PivotItem control.

 

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

 

 

Afficher:
© 2014 Microsoft