Search
ListContainer.items Property
See Also
 






Gets the collection of ListItem-s.

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

 Syntax

JavaScript  Copy Code

get items() {}

 Property Value

ObservableCollection. The collection of items.

 Example

The following sample creates a new ToolStripItem and adds it to the collection of items of a ToolStrip instance, which derives from ListContainer.

JavaScript  Copy Code

var ui = MindFusion.UI;

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

var button = new ui.ToolStripItem(ui.ToolStripItemType.Label, "New Tab");
button.tooltip = "New Tab";
button.cssClass = "toolbutton-add";
toolstrip.items.add(button);

 See Also