WinJS.UI.AppBarCommand constructor

Applies to Windows and Windows Phone

Creates a new AppBarCommand object.

Syntax


var appBarCommand = new WinJS.UI.AppBarCommand(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 AppBarCommand.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

AppBarCommand
AppBar
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

 

 

Show:
© 2014 Microsoft