Visit http://formfactoryaspmvc.azurewebsites.net/ for live documentation and to see what FormFactory can do!
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)
install-package FormFactory
install-package FormFactory.AspNetCore
configure core to serve embedded files - see startup.cs lines 36 and 60
Add the assets to your page
<link href="/Content/FormFactory/FormFactory.css" rel="stylesheet" type="text/css"/>
<script src="/Scripts/FormFactory/FormFactory.js" type="text/javascript"></script>
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