cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1514
Views
5
Helpful
1
Replies

NeXt UI links set

andrwan2
Cisco Employee
Cisco Employee
Through the NeXt UI documentation, I notice that it's mentioned that:
Property Description Example value
id Identifier of a link. Likewise node IDs, it should be unique among all the links. 0
source ID of a source node. If you explicitly defined it, you may use node's name. 0
target ID of node-destination. If you explicitly defined it, you may use node's name. 1
So, I tried to set links as below:
"links":[
{'source': 'SW4', 'target': 'SW3'},
{'source': 'SW4', 'target': 'SW2'},
{'source': 'SW4', 'target': 'SW1'},
{'source': 'SW4', 'target': 'SW5'},
{'source': 'SW4', 'target': 'SW4'},
{'source': 'SW4', 'target': 'SW'},
{'source': 'SW4', 'target': 'SW'},
{'source': 'SW4', 'target': 'SW'},
{'source': 'SW4', 'target': 'SW'},
],
};
 
But seems it doesn't work well, could you help to give me a suggestion and how to deal with the node's name?
1 Reply 1

andrwan2
Cisco Employee
Cisco Employee

I find we need to modify app.js, add  identityKey: 'name',  by default it's based on id