Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to wrap element for complex form rendering #216

Open
ntbatyr opened this issue May 17, 2023 · 4 comments
Open

Ability to wrap element for complex form rendering #216

ntbatyr opened this issue May 17, 2023 · 4 comments

Comments

@ntbatyr
Copy link

ntbatyr commented May 17, 2023

Feature Request

Adding a parent element, or at least wrapping it in a single block, made it easier to work with forms in complex rendering, without passing at a time. Usage practice can be dynamically assembled elements, the volume of which would not be small; It would also make it possible to write less code in the phtml file.

Q A
New Feature yes
RFC no
BC Break no

Summary

laminas-form/src/View/Helper/FormRow::render method

Implementation options: wrap_template option

  • request a template for sprintf
  • request a callable function as an argument already pass markup
  • request an array of options with attributes and element tag (although in this case only one element will be generated)
@froschdesign
Copy link
Member

I think this request is a duplication of #62.

@ntbatyr
Copy link
Author

ntbatyr commented May 21, 2023

I think this request is a duplication of #62.

Yes, I didn't notice. Sorry! But so many times have been passed.

@froschdesign
Copy link
Member

@ntbatyr

But so many times have been passed.

Create a pull request and the wait is over. 👍🏻

Any help is welcome and we are thankful for any contribution!

@mimmi20
Copy link
Contributor

mimmi20 commented Jan 25, 2024

@ntbatyr Did you try this?

$this->formRow()->setPartial('the Partial');
$this->formRow($element);
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants