Adds a range of elements to the end of the collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
SyntaxJavaScript
Copy Code
|
|---|
function addRange (range) |
Array. The range to add.
ExampleThe following code uses the addRange method to add an array of TreeNode-s to the root element of a TreeView.
JavaScript
Copy Code
|
|---|
// create a tree node that will be a root in our hierarchy var span = new ui.TreeNode("span"); var elements = [span, div, p]; |
See Also