VxFormGenerator

screenshot of VxFormGenerator

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 E...

Overview:

VxFormGenerator is a library for Blazor that allows developers to easily generate forms based on annotated objects or dynamic ExpandoObjects. It supports layout structuring, nested models, and various rendering options. The library provides flexibility and direct usage of the EditForm component in Blazor.

Features:

  • Generates forms based on annotated objects or dynamic ExpandoObjects
  • Supports layout structuring and nested models
  • Allows customization of label position, placeholder policy, and validation state trigger

Installation:

To install VxFormGenerator, follow these steps:

  1. Add the NuGet package to your Blazor project.

    • For plain components:
      dotnet add package VxFormGenerator.Components.Plain
      
    • For Bootstrap components:
      dotnet add package VxFormGenerator.Components.Bootstrap
      
  2. Open a terminal in your project folder.

  3. Add the appropriate usage statement in the Startup.cs file, depending on the components you want to use.

    • For plain components:

      using VxFormGenerator.Settings.Plain;
      
    • For Bootstrap components:

      using VxFormGenerator.Settings.Bootstrap;
      
  4. After adding the usage statement, add the following line:

    services.AddVxFormGenerator();
    
  5. You can now use the VxFormGenerator library in your Blazor application.

Summary:

VxFormGenerator is a library for Blazor that allows developers to quickly generate forms based on annotated objects or dynamic ExpandoObjects. It provides flexibility and direct usage of the EditForm component in Blazor, and supports various rendering options and layout structuring. The library is easy to install and configure, making it a valuable tool for form generation in Blazor applications.