03-17-2016 09:35 AM
Hello all,
I have a nodeSet that was already created and now I want to add new nodes to it.
I'm doing this when the nodeset is expanded. My code goes as follows:
topo.on('beforeExpandNodeSet', (sender, nodeSet) => {
var lanInfo = this._topologyClient.getLANInfo(nodeSet.model().getData().id); //Fetch the information of the nodes
for (var i: number = 0; i < lanInfo.length; i++) {
var node = topo.addNode(lanInfo[i], undefined, nodeSet);
}
})
This doesn't seem to do it. In fact, if I go through the code of the function addNode, I find out that it doesn't have a third parameter (parentNodeSet), even though it says it does, in the documentation.
How can I add this newly-created nodes to the nodeset?
Thank you
Solved! Go to Solution.
03-21-2016 01:28 PM
03-21-2016 01:28 PM
Refer this : Adding new NodeSet
Abu
03-21-2016 11:38 PM
Thank you Abu
Any idea when this will be added to the formal API?
Thank you
04-19-2016 08:26 AM
Hi AbdulRahman AlHamali,
I already add to current develop trunk. Will release that in 3 months.
Abu
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide