Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

CodeGator/CG.Blazor.Forms._Syncfusion

Repository files navigation

CG.Blazor.Forms._Syncfusion:


Build Status Github docs NuGet downloads Azure DevOps coverage Github discussion CG.Blazor.Forms._Syncfusion on fuget.org

What does it do?

The package contains Syncfusion extensions for the CG.Blazor.Forms package.

Commonly used types:

  • 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

What platform(s) does it support?

  • .NET 6.x or higher

How do I install it?

The binary is hosted on NuGet. To install the package using the NuGet package manager:

PM> Install-Package CG.Blazor.Forms._Syncfusion

How do I contact you?

If you've spotted a bug in the code please use the project Issues HERE

We have a discussion group HERE

Is there any documentation?

There is developer documentation HERE

We also blog about projects like this one on our website, HERE


How do I get started?

There is a working quick start sample HERE

Steps to get started:

  1. Create a Blazor project to get started.

  2. Add support for Syncfusion Blazor. HERE are instructions for doing that.

  3. Add the CG.Blazor.Forms._Syncfusion NUGET package to the project.

  4. Add @using CG.Blazor.Forms.Attributes to the _Imports.razor file.

  5. Add <DynamicForm Model="@Model" OnValidSubmit="OnValidSubmit"/> to the razor component where you want your dynamic form generated. Note that Model is a reference to your POCO object, and OnValidSubmit is a reference to your form's submit handler.

  6. Add services.AddFormGeneration(); to the ConfigureServices method of the Startup class.

  7. 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; }
}

That's pretty much it! You can, of course, get fancier, but that's up to you.

Disclaimer

This package and it's contents are experimental in nature. There is no official support. Use at your own risk.

About

Syncfusion extensions for the CG.Blazor.Forms package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published