Command.firstElementFocus property

Gets or sets keyboard navigation behavior in the app bar for Command elements of type "content". This property identifies the element that receives focus within the Command host <div> (or container) when navigating from the left. By default, the host <div> receives initial focus if this property is not set.

Syntax

<div 
  data-win-control="WinJS.UI.Command" 
  data-win-options="{ firstElementFocus : value}">
</div>
var firstElementFocus = command.firstElementFocus;
command.firstElementFocus = firstElementFocus;

Property value

Type: Object

The element that receives the focus.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

Command

AppBarCommand.firstElementFocus