[TwigComponent] Nested components - access to child components #3122
SimonMellerin
started this conversation in
RFC - Feature Ideas
Replies: 2 comments
-
Do you have any idea on how to implement this ?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually, I haven't looked at the code for now. It was just a feature proposal but I don't really know how TwigComponent work under the hood. May be there's a way to list all blocks from a Template ? I will try to dig into this, maybe later this week. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
It could be nice to be able to list and access child block from their parent twig component.
Here is my use case, a component that can dynamically define a table with columns, like this:
Currently, I have no possibility to know from
twig:Table:Table
how many columns I have and which label I need to put in my<th>
tags.Actually, what I want to do is to reproduce a way to describe table as Primevue does: https://primevue.org/datatable/
What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions