You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fprochazka Is there any example how to manually template just part of the form? I have form class that has a configured renderer and it just does not create any HTML surrounding a single addDynamic() container.
Render the complete form manually would be the last resort solution.
Or is there any chance to extend the form renderrer to style dynamic containers?
I have also tried to use Container#setCurrentGroup but does not have any effect. $this->addDynamic('legs', function (Container $container) { $cg = new ControlGroup(); $cg->setOption('container', 'section class=oneLeg'); $container->setCurrentGroup($cg); $container->addText('from', 'From'); $container->addText('to', 'To'); }, 1);
Since I cannot use addGroup() inside addDynamic(), I'm having trouble styling these "groups" of elements – or at least separate them from each other.
What are the options/best practices to this currently? Thank you.
The text was updated successfully, but these errors were encountered: