Search
Orientation Enumeration
See Also
 






Specifies orientation.

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

 Syntax

JavaScript  Copy Code

// enum
Orientation = {}

 Members

  Member name Value Description

Horizontal

0

Indicates a horizontal orientation.

Vertical

1

Indicates a vertical orientation.

 Example

The following code creates a ToolStrip with a vertical orientation:

JavaScript  Copy Code

var ui = MindFusion.UI;

var theme = "standard";

function loadWindow(sender)
{

    // create a new instance of the ListContainer control
    var toolstrip = new ui.ToolStrip(document.getElementById("listcontrol"));
    toolstrip.width = new ui.Unit(100, ui.UnitType.Pixel);
    toolstrip.height = new ui.Unit(100, ui.UnitType.Percent);
    toolstrip.itemSize = new ui.Unit(50);
    toolstrip.orientation = ui.Orientation.Vertical;
    toolstrip.collapsible = true;
    toolstrip.scrollable = false;
    toolstrip.theme = theme;
    toolstrip.fromJson("myJsonFile.json");

    toolstrip.attach();
}

 See Also