Search
ToolStrip.collapsible Property
See Also
 






Gets or sets a value indicating whether the toolstrip can be collapsed.

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

 Syntax

JavaScript  Copy Code

get collapsible() {}

 Property Value

Boolean. true if the ToolStrip can be collapsed, otherwise false.

 Example

The following sample creates a new ToolStrip and a ToolStripItem to add to the collection of items. The ToolStrip is collapsible.

JavaScript  Copy Code

var ui = MindFusion.UI;

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

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