Search
ListContainer Constructor
See Also
 






Initializes a new instance of the ListContainer class.

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

 Syntax

JavaScript  Copy Code

function ListContainer ([element])

 Parameters

element
Optional.

HTMLElement. The control's associated Dom element.

 Example

The following code creates a new instance of the ToolStrip class, which derives from ListContainer. The constructor uses a reference to an HTMLElement called toolstrip:

JavaScript  Copy Code

var ui = MindFusion.UI;

var theme = "standard";

// create a new instance of the ListContainer control
var toolstrip = new ui.ToolStrip(document.getElementById("toolstrip"));
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;

 See Also