Search
ToolStrip.acceptDrop Property
See Also
 






Gets or sets the ToolStripItem instance that can be dropped.

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

 Syntax

JavaScript  Copy Code

get acceptDrop() {}

 Property Value

ToolStripItem. A ToolStripItem instance.

 Example

The following sample creates a new ToolStripItem and adds it to the collection of items of a ToolStrip instance and assigns it as a value to the allowDrop property:

JavaScript  Copy Code

var ui = MindFusion.UI;

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

var button = new ui.ToolStripItem(ui.ToolStripItemType.Label, "New Tab");
button.tooltip = "New Tab";
button.cssClass = "toolbutton-add";
button.height = button.width = 30;
button.enabled = false;

toolstrip.items.add(button);
toolstrip.allowDrop = button;

 See Also