Skip to content

Is there a way to access children without rendering #14018

Answered by zyxd
tomasz13nocon asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure if I understand correctly, you need something like this?
https://svelte.dev/playground/b141c402c05e4ba581a7e177a946278e?version=5.1.4

In this example <SelectItem> does not have a template - it is implemented in <Select>. If you need to implement a template in <SelectItem> you can give it the ability to decide whether to show or not <button> by passing the open property from the parent.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tomasz13nocon
Comment options

@zyxd
Comment options

Answer selected by tomasz13nocon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Leonidaz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants