Command.lastElementFocus 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 right. 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="{ lastElementFocus : value}">
</div>
var lastElementFocus = command.lastElementFocus;
command.lastElementFocus = lastElementFocus;
Property value
Type: Object
The element that receives the focus.
Requirements
Minimum WinJS version |
WinJS 4.0 |
Namespace |
WinJS.UI |