AppBarCommand.section property

0 out of 4 rated this helpful - Rate this topic

Gets the section of the app bar that the command is in.

Syntax


var section = appBarCommand.section;

Property value

Type: string

The string "selection" if the command is in the selection section; otherwise "global", indicating that the command is in the global section.

"selection" is for commands that are meant to show in the context of selected objects. "global" is for commands that always show on a specific page.

"global" maps to right and "selection" maps to left in LTR (left-to-right) layouts. The opposite is true in RTL (right-to-left) layouts.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

See also

AppBarCommand

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.