[TwigComponent] Merging defaults in nested attributes #2482
-
Hey guys! Just wondering if there's a way to merge default values into a nested attribute in Twig Components? As described here... I can do something like <twig:Dialog title:class="bar"></twig:MyDialog> Working great, by the way! But what if I want to have some default css classes in the nested title html element? As of this section... ...it would be great to being able to get the injected Anyone having a solution for that? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I didn't try but maybe |
Beta Was this translation helpful? Give feedback.
Hi, I didn't try but maybe
{{ attributes.nested('title').defaults({ class: 'foo' }) }}
can works