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

Yaml configurable forms #320

Open
calina-c opened this issue Feb 11, 2017 · 0 comments
Open

Yaml configurable forms #320

calina-c opened this issue Feb 11, 2017 · 0 comments

Comments

@calina-c
Copy link

Hello and, first of all, thank you for the wonderful library @kristijanhusak. I have been using it for my Laravel project and I enjoy it a lot.

That being said, I have a suggestion on how to improve the form builder by adding YAML support. I have written a YamlConfigForm class in my project, which takes a .yml file as a parameter and builds the form according to the file contents. I have also added support for callbacks. I will attach some examples below.

I believe integrating this feature will help with:

  • removing code duplication arising in similar forms
  • improving clarity of reading form configurations

I will be happy to fork the repository myself and add this functionality, if it is something you would welcome.

Example gists (of course these are adapted to my needs, but they can be generalised as necessary):

Thank you again for the wonderful library and let me know if I can help! :)

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

No branches or pull requests

1 participant