WinJS.UI.WinJS.UI.PivotItem object
Creates an item within a Pivot control.
<div data-win-control="WinJS.UI.PivotItem"></div>
var object = new WinJS.UI.PivotItem(element, options);
The PivotItem object has these types of members:
- Constructors
- Methods
- Properties
The PivotItem object has these constructors.
Constructor | Description |
---|---|
PivotItem | Creates a new PivotItem control |
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. |
The PivotItem object has these properties.
Property | Access type | Description |
---|---|---|
Read-only |
Gets the DOM element that hosts the PivotItem control's content. |
|
Read-only |
Gets the DOM element that hosts the PivotItem control. |
|
Read/write |
Gets or sets the header for this PivotItem. |
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.
Minimum WinJS version |
Phone WinJS 2.1 |
Namespace |
WinJS.UI |