Compartilhar via


WinJS.UI.WinJS.UI.PivotItem object

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
  • Methods
  • Properties

Constructors

The PivotItem object has these constructors.

Constructor Description
PivotItem

Creates a new PivotItem control

 

Methods

The PivotItem object has these methods.

Method Description
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.

Property Access type Description

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 WinJS version

Phone WinJS 2.1

Namespace

WinJS.UI