WinJS.UI.HubSection object

Applies to Windows only

Defines a section of a Hub.

Explore this functionality in more depth as part of our App features, start to finish series:  Hierarchical navigation, start to finish (HTML)

Syntax


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


var object = new WinJS.UI.HubSection();

Members

The HubSection object has these types of members:

Constructors

The HubSection object has these constructors.

ConstructorDescription
HubSection

Creates a new HubSection.

 

Methods

The HubSection object has these methods.

MethodDescription
dispose

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

 

Properties

The HubSection object has these properties.

PropertyAccess typeDescription

contentElement

Read-only

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

element

Read-only

Gets the DOM element that hosts this HubSection.

header

Read/write

Gets or sets the header for this HubSection.

isHeaderStatic

Read/write

Gets a value that specifies whether the header is static.

 

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

None supported

Namespace

WinJS.UI

Library

Ui.js

See also

WinJS.UI Namespace
Hub
AppBar
NavBar
BackButton
Your first app - Part 3: PageControl objects and navigation
Quickstart: Using a hub control for layout and navigation
Navigating between pages (HTML)
Adding app bars
Adding nav bars
HTML Hub control sample
HTML AppBar control sample
HTML NavBar control sample
Navigation and navigation history sample
Designers
Command patterns
Navigation patterns
Hub
Guidelines for the hub control

 

 

Show:
© 2014 Microsoft