Freigeben über


WinJS.UI.HubSection object

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

Constructors

The HubSection object has these constructors.

Constructor Description
HubSection

Creates a new HubSection.

 

Methods

The HubSection object has these methods.

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

Property Access type Description

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

WinJS 2.0

Namespace

WinJS.UI

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