-2

Is it possible to have (one?) more label for nodes?

I want to retrieve node Id, but not within Node Name.

Thx all

Karlova
  • 11
  • 1
  • 3

2 Answers2

0

You could use the multiline-manual or multiline-auto style for labels. That way you can set the label to a string containing the labels with \n between them.

Stephan T.
  • 5,843
  • 3
  • 20
  • 42
0

Finally i have found this solution.

In var elements:

var elem = {
        data: {
            id: idE,
            name: name,
            label: "#"+id+ " | " + name
        }

In css node:

selector: 'node',
        style: {
            'content': 'data(label)'

So i can retrieve name or id separetly as usual, but showing more node information.

Thx all

Karlova
  • 11
  • 1
  • 3