次の方法で共有


ItemContainer.draggable property

Gets or sets a value that specifies whether the item can be dragged.

Syntax

<div 
    data-win-control="WinJS.UI.ItemContainer" 
    data-win-options="{ draggable : value}" >
</div>
var draggable = itemContainer.draggable;
itemContainer.draggable = draggable;

Property value

Type: Boolean

true if the item can be dragged; otherwise, false. The default value is false.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ItemContainer