Aaltuj / VxFormGenerator

The library contains a component, that nests itself into the Blazor EditForm instead of a wrapper around the EditForm. The component is able to generate a form based on a POCO or a ExpandoObject. Because of this architecture the library provides the developer flexibility and direct usage of the EditForm.
MIT License
119 stars 36 forks source link

Can we expose the EditForm code? #29

Closed kenneymyers closed 3 years ago

kenneymyers commented 3 years ago

First of all this is fantastic! My question is often when building a form we have some wonky CSS and or business requirements that require us to have full control over the HTML. Is it possible to just generate the EditForm so we can easily modify it for special situations? Thanks!

kenneymyers commented 3 years ago

Just to be more specific, I am wondering if we can output the input fields and what is in the RenderFormElements

Aaltuj commented 3 years ago

hi @longhornleads,

If i understand your question correctly. You want to dynamicly create the editform and than attach it to an already created html form?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kenneymyers commented 3 years ago

Yes, that would be pretty awesome. Basically just have an extension that would create an edit form from the model. Then the developer could take it from there.

On Tue, Jun 22, 2021, 4:08 AM Alex Knijf @.***> wrote:

hi @longhornleads https://github.com/longhornleads,

If i understand your question correctly. You want to dynamicly create the editform and than attach it to a already created html form?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Aaltuj/VxFormGenerator/issues/29#issuecomment-865783712, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGW3GFXG7TBHY255KUCUQDTUBHJNANCNFSM465UIIEA .

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Aaltuj commented 3 years ago

Sorry about the delay... parenthood isn't giving me the time I want for this baby :). let me investigate this approach this week. I'll come back on this.

kenneymyers commented 3 years ago

Sounds great! Thank you!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

havenindustries commented 1 year ago

Did you ever get a chance to look at this one? It would be really awesome to be able to just simply generate the EDITFORM fields from a POCO in such a way that we can interact directly with them. This library is awesome but I think it's a pretty huge oversight that you cannot just right click on an annotated POCO and generate a razor component. This library does it when it renders the form but we would love to have it just render the code for the component.