The package contains Syncfusion extensions for the CG.Blazor.Forms package.
- CG.Blazor.Forms.Attributes.SyncfusionAttribute
- CG.Blazor.Forms.Attributes.RenderSfCheckBoxAttribute
- CG.Blazor.Forms.Attributes.RenderSfColorPickerAttribute
- CG.Blazor.Forms.Attributes.RenderSfComboBoxAttribute
- CG.Blazor.Forms.Attributes.RenderSfDatePickerAttribute
- CG.Blazor.Forms.Attributes.RenderSfNumericTextBoxAttribute
- CG.Blazor.Forms.Attributes.RenderSfRadioGroupAttribute
- CG.Blazor.Forms.Attributes.RenderSfSliderAttribute
- CG.Blazor.Forms.Attributes.RenderSfTextBoxAttribute
- CG.Blazor.Forms.Attributes.RenderSfTimePickerAttributre
- .NET 6.x or higher
The binary is hosted on NuGet. To install the package using the NuGet package manager:
PM> Install-Package CG.Blazor.Forms._Syncfusion
If you've spotted a bug in the code please use the project Issues HERE
We have a discussion group HERE
There is developer documentation HERE
We also blog about projects like this one on our website, HERE
There is a working quick start sample HERE
Steps to get started:
-
Create a Blazor project to get started.
-
Add support for Syncfusion Blazor. HERE are instructions for doing that.
-
Add the CG.Blazor.Forms._Syncfusion NUGET package to the project.
-
Add
@using CG.Blazor.Forms.Attributes
to the _Imports.razor file. -
Add
<DynamicForm Model="@Model" OnValidSubmit="OnValidSubmit"/>
to the razor component where you want your dynamic form generated. Note thatModel
is a reference to your POCO object, andOnValidSubmit
is a reference to your form's submit handler. -
Add
services.AddFormGeneration();
to theConfigureServices
method of theStartup
class. -
Create your model type. Use attributes from the NUGET package to decorate any properties you want to be rendered on the form. Here is an example:
[RenderValidationSummary()]
[RenderFluentValidationValidator]
public class MyForm
{
[RenderSfTextBox]
[Required]
public string FirstName { get; set; }
[RenderSfTextBox]
[Required]
public string LastName { get; set; }
}
This package and it's contents are experimental in nature. There is no official support. Use at your own risk.