ILayout2.getAdjacent method
Determines the next item to receive keyboard focus.
Syntax
var object = iLayout2.getAdjacent(currentItem, pressedKey);
Parameters
currentItem
Type: ObjectAn object that describes the current item. It has these properties:
index
The index of the current item.type
An WinJS.UI.ObjectType value that specifies whether the item is an item or a group header.
pressedKey
Type: WinJS.Utilities.Key**The key that was pressed.
Return value
Type: Object
An object that describes the next item that should receive focus. It has these properties:
Term | Description |
---|---|
|
The index of the next item. |
|
An WinJS.UI.ObjectType value that specifies whether the item is an item or a group header. |
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |