Adds a range of elements to the end of the collection.
Namespace: MindFusion.Common.Collections
File: IEnumerable.js
JavaScript Copy Code |
---|
function addRange (range) |
Type: Array
Array. The range to add.
The 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]; |