How can i get all children recursively in jointjs.
I have done embedding in correct order.
I have done some homework in trying to find the answer, I have been using cell.getNeighbours()
.
But this does not help me in retrieving what i want.It only give the first child or first neighbours.
Since the embedding is done correct, I was thinking to use cell.getEmbeddedCells()
.
I am looking for help in creating a recursive function using cell.getEmbeddedCells()
getNeightbors()
is for retrieving neighbors of an element in terms of links (both inbound and outbound) that are connected to that element. This has nothing to do with embeds. For retrieving all the embedded cells and their embedded cells recursively, you can do something like this: