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 |
|
See also
Build date: 12/5/2012