Windows Dev Center

WinJS.UI.ItemContainer constructor

Applies to Windows and Windows Phone

Creates a new ItemContainer.

Syntax


var itemContainer = new WinJS.UI.ItemContainer(element, options);

Parameters

element

Type: Object

The DOM element hosts the new ItemContainer. For the ItemContainer to be accessible, this element must have its role attribute set to "list" or "listbox". If tapBehavior is set to none and selectionDisabled is true, then use the "list" role; otherwise, use the "listbox" role.

options

Type: Object

An object that contains one or more property/value pairs to apply to the new control. Each property of the options object corresponds to one of the control's properties or events.

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

Library

Winjs.js

See also

ItemContainer

 

 

Show:
© 2015 Microsoft