ILayout2.getAdjacent method

Applies to Windows and Windows Phone

Determines the next item to receive keyboard focus.

Syntax


var object = iLayout2.getAdjacent(currentItem, pressedKey);

Parameters

currentItem

Type: Object

An 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:

TermDescription

index

The index of the next item.

type

An WinJS.UI.ObjectType value that specifies whether the item is an item or a group header.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

ILayout2

 

 

Show:
© 2014 Microsoft