-
Notifications
You must be signed in to change notification settings - Fork 63
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
Allow form generator to take a fields option which will prepopulate the form with those fields #5
Comments
Interesting... so how would this work, like: |
Yeah something along those lines would be nice. Maybe you would separte field names with their types like in a rails migration. firstName:text email:email lastName:text age:number etc. |
Ok, seems pretty straight forward then; so a complete command for this would include an optional
This might be a separate issue, but I think redux-cli needs to have some sort of validation for this in that if a form or component already exists, complain about it in the CLI instead of overwriting it (as well as making sure the syntax is correct for the including the field arguments). The overwriting of existing components has been a cumbersome issue I've experienced using this library. Nothing a revert of the local repo couldn't fix, but still... |
Yeah I totally agree with the overwrite issues. If you want to try and tackle that I'd be open to a PR. I just started a new job though and need to learn Go and Angular at the moment so not sure how much free time I'll have to work on that for at least a few weeks. |
Cool. I just wanted to create some ideas here for reference whenever I might have time to work on this... Another idea, however, is to allow another flag for |
#110 will address this. And this issue will be closed when it is accepted data will be able to be passed to blueprints that can use to do things like generate form fields for each attribute. |
Merged #110 into the 2.0 master. |
No description provided.
The text was updated successfully, but these errors were encountered: