cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
249
Views
5
Helpful
1
Replies
andrwan2
Cisco Employee

NeXt UI links set

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

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

Content for Community-Ad