Skip to content

Nesting parent dynamic size fit to children #219

Answered by bcakmakoglu
AlexanderYW asked this question in Q&A
Discussion options

You must be logged in to vote

It is possible to expand the parent (using the expandParent property on your child node)

const nodes = ref([
	  {
		  id: '1',
		  label: 'Node 1',
		  position: { x: 0, y: 0 }
	  },
	  {
		  id: '1a',
		  label: 'Node 1a',
		  position: { x: 0, y: 0 },
		  expandParent: true
	  }
])

Currently it is not possible, using a built-in mechanism, to collapse the same parent again.
That's something you would have to implement yourself (might be a feature in a future release but there's no plans yet).

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@AlexanderYW
Comment options

@bcakmakoglu
Comment options

@mikila85
Comment options

@bcakmakoglu
Comment options

Answer selected by bcakmakoglu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants