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: 10 months ago
JSON representation
MVC5, Core or standalone - Generate rich HTML5 forms from your ViewModels, or build them programatically
- Host: GitHub
- URL: https://github.com/mcintyre321/formfactory
- Owner: mcintyre321
- License: mit
- Created: 2011-09-30T11:43:04.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T03:44:41.000Z (about 3 years ago)
- Last Synced: 2025-04-01T03:35:07.295Z (11 months ago)
- Topics: asp-mvc, asp-net-core, component-driven, form-builder
- Language: C#
- Homepage: http://formfactoryaspmvc.azurewebsites.net/
- Size: 8.24 MB
- Stars: 302
- Watchers: 41
- Forks: 100
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: License.txt
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