Search
ListContainer.allowDrag Property
See Also
 






Gets or sets whether drag and drop capabilities are enabled.

Namespace: MindFusion.Common.UI
File: ListContainer.js

 Syntax

JavaScript  Copy Code

get allowDrag() {}

 Property Value

Boolean. true if drag and drop is enabled, otherwise false.

 Example

The following sample creates a ToolStrip control that derives from ListContainer and allows items to be dragged and dropped as well multiple items to be selected.

JavaScript  Copy Code

var ui = MindFusion.UI;

// create a new instance of the ToolStrip control
var toolstrip = new ui.ToolStrip(document.getElementById("toolstrip"));
toolstrip.allowMultipleSelection = true;
toolstrip.allowDrag = true;
toolstrip.allowDrop = true;

 See Also