WinJS.UI.AppBar constructor

Creates a new AppBar object.

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

Syntax

var appBar = new WinJS.UI.AppBar(element, options);

Parameters

  • element
    Type: Object

    The DOM element that hosts the control.

  • options [optional]
    Type: Object

    The set of properties and values to apply to the new AppBar.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

AppBar

AppBarCommand

AppBarIcon

BackButton

NavBar

Your first app - Part 3: PageControl objects and navigation

Navigating between pages (HTML)

Adding app bars

Adding nav bars

HTML AppBar control sample

HTML NavBar control sample

Navigation and navigation history sample

Designers

Command patterns

Navigation patterns

Guidelines for app bars

Bottom app bar

Top app bar