Skip to content

Confused about children placeholder #1052

Answered by elkowar
rafaeljacov asked this question in Q&A
Discussion options

You must be logged in to vote

When using your custom widget, you may want to put other widgets inside – e.g. for having reusable containers like buttons with some icon and label. Just like a box or a button can have children (elements inside it), your custom widgets can, too. In your custom widget, when you use the children placeholder somewhere, and you put some children into your invocation of the custom widget, those children will be put where the placeholder is

Replies: 1 comment

Comment options

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