MudExObjectEdit.CodeGatorAdapter 2.0.2

dotnet add package MudExObjectEdit.CodeGatorAdapter --version 2.0.2                
NuGet\Install-Package MudExObjectEdit.CodeGatorAdapter -Version 2.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MudExObjectEdit.CodeGatorAdapter" Version="2.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MudExObjectEdit.CodeGatorAdapter --version 2.0.2                
#r "nuget: MudExObjectEdit.CodeGatorAdapter, 2.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MudExObjectEdit.CodeGatorAdapter as a Cake Addin
#addin nuget:?package=MudExObjectEdit.CodeGatorAdapter&version=2.0.2

// Install MudExObjectEdit.CodeGatorAdapter as a Cake Tool
#tool nuget:?package=MudExObjectEdit.CodeGatorAdapter&version=2.0.2                

MudBlazor.Extensions.CodeGator Adapter

Overview

The MudBlazor.Extensions.CodeGator Adapter seamlessly integrates CG.Blazor.Forms with the MudExObjectEdit component from MudBlazor.Extensions. It allows developers to utilize CodeGator attributes on their properties while rendering forms using the MudExObjectEdit component. More about MudBlazor.Extension can found here

Live sample

Benefits

  • Maintain all CodeGator attributes in your model properties.
  • Harness the power and flexibility of MudExObjectEdit for form rendering.
  • You can use all CG Attributes not only the MudBlazor onces

Prerequisites

Ensure you have MudBlazor.Extensions installed in your project.

Getting Started

  1. Installation: After ensuring you have MudBlazor.Extensions installed, simply add the following code to your service registration setup:
 builder.Services.AddMudExObjectEditCGBlazorFormsAdapter();
  1. Usage: Use CodeGator attributes in conjunction with MudBlazor components. Here's a simple example of a model using both:
public class SampleModel
{
    [RenderMudAlert]
    public string Text { get; set; } = "MoIn";

    [RenderMudTextField]
    [Required]
    public string FirstName { get; set; } = "Pete";

    [RenderMudTextField]
    [Required]
    public string LastName { get; set; }

    [RenderMudDatePicker]
    public DateTime? DateOfBirth { get; set; }
}

With this model above you can then use it in MudExObjectEditForm like this

    <MudExObjectEditForm Value="@Model"></MudExObjectEditForm>

Screenshot

Conclusion

By integrating the best of both worlds, this package offers a streamlined approach to form rendering in Blazor. Whether you're a seasoned developer or just starting out, this adapter will enhance your development workflow and productivity.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on MudExObjectEdit.CodeGatorAdapter:

Repository Stars
fgilde/MudBlazor.Extensions
MudBlazor.Extensions from https://www.mudex.org is a small extension for MudBlazor from https://mudblazor.com
Version Downloads Last updated
2.0.2 318 7/16/2024
1.0.12 893 10/6/2023
1.0.11 199 6/26/2023
0.0.0-gbe87af26ac 210 9/8/2022