Search
ToolStrip.scrollable Property
See Also
 






Gets or sets a value indicating whether the ToolStrip displays scroll arrows when there is not enough room to display all items.

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

 Syntax

JavaScript  Copy Code

get scrollable() {}

 Property Value

Boolean. true if the toolstrip displays scroll arrows, otherwise false.

 Example

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

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;
//display scroll arrows, if there is space
toolstrip.scrollable = 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