MudExObjectEdit.CodeGatorAdapter
1.0.12
See the version list below for details.
dotnet add package MudExObjectEdit.CodeGatorAdapter --version 1.0.12
NuGet\Install-Package MudExObjectEdit.CodeGatorAdapter -Version 1.0.12
<PackageReference Include="MudExObjectEdit.CodeGatorAdapter" Version="1.0.12" />
paket add MudExObjectEdit.CodeGatorAdapter --version 1.0.12
#r "nuget: MudExObjectEdit.CodeGatorAdapter, 1.0.12"
// 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
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
- Installation: After ensuring you have MudBlazor.Extensions installed, simply add the following code to your service registration setup:
builder.Services.AddMudExObjectEditCGBlazorFormsAdapter();
- 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>
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 | Versions 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. |
-
net6.0
- CG.Blazor.Forms._MudBlazor (>= 2023.1.5)
- MudBlazor.Extensions (>= 1.7.72-prev-2310061333-main)
-
net7.0
- CG.Blazor.Forms._MudBlazor (>= 2023.1.5)
- MudBlazor.Extensions (>= 1.7.72-prev-2310061333-main)
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 | 272 | 7/16/2024 |
1.0.12 | 860 | 10/6/2023 |
1.0.11 | 193 | 6/26/2023 |
0.0.0-gbe87af26ac | 208 | 9/8/2022 |