MudExObjectEdit.CodeGatorAdapter 1.0.12

dotnet add package MudExObjectEdit.CodeGatorAdapter --version 1.0.12
NuGet\Install-Package MudExObjectEdit.CodeGatorAdapter -Version 1.0.12
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="1.0.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MudExObjectEdit.CodeGatorAdapter --version 1.0.12
#r "nuget: MudExObjectEdit.CodeGatorAdapter, 1.0.12"
#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=1.0.12

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

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.

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 net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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
1.0.12 542 10/6/2023
1.0.11 160 6/26/2023
0.0.0-gbe87af26ac 174 9/8/2022