Search
ListContainer.attach Method
See Also
 






Control.attach override.

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

 Syntax

JavaScript  Copy Code

function attach ()

 Example

The following code creates a ToolStrip programmatically and calls its attach method to attach it to a div with an id "toolstrip_div":

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();
    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;
    sender.element.querySelector("#toolstrip_div").appendChild(toolstrip.draw());
    toolstrip.attach();
}

 See Also