次の方法で共有


WinJS.UI.ItemContainer constructor

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 WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ItemContainer