An open API service indexing awesome lists of open source software.

https://github.com/mcintyre321/FormFactory

MVC5, Core or standalone - Generate rich HTML5 forms from your ViewModels, or build them programatically
https://github.com/mcintyre321/FormFactory

asp-mvc asp-net-core component-driven form-builder

Last synced: 7 months ago
JSON representation

MVC5, Core or standalone - Generate rich HTML5 forms from your ViewModels, or build them programatically

Awesome Lists containing this project

README

          

# FormFactory - dynamic HTML form engine

Visit http://formfactoryaspmvc.azurewebsites.net/ for live documentation and to see what FormFactory can do!



# Installation

## For ASP.NET MVC 5
`install-package FormFactory`
`install-package FormFactory.AspMvc`
`install-package EmbeddedResourceVirtualPathProvider *` (or you can install FormFactory.Templates if you don't want to use the EmbeddedResourceVirtualPathProvider)

## For ASP.NET MVC Core
`install-package FormFactory`
`install-package FormFactory.AspNetCore`
configure core to serve embedded files - see [startup.cs](https://github.com/mcintyre321/FormFactory/blob/master/FormFactory.AspNetCore.Example/Startup.cs#L36) lines 36 and 60

## For both

Add the assets to your page
``
``

# How to use it

Inside an cshtml file: `@FF.PropertiesFor(someObject).Render(Html);`

`.PropertiesFor(someObject)` will reflect over the `someObject` and create an enumerable of `PropertyVm` objects, and `.Render(Html)` will render each object out the page

See the documentation site for how to mark up your viewmodel