Added smart form. Added smart select

This commit is contained in:
Marcel Baumgartner
2023-03-24 19:51:13 +01:00
parent b29ad96950
commit beef6dcd1d
6 changed files with 202 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Components.Forms;
namespace Moonlight.App.Helpers;
public class FieldCssHelper : FieldCssClassProvider
{
public override string GetFieldCssClass(EditContext editContext, in FieldIdentifier fieldIdentifier)
{
return editContext.GetValidationMessages(fieldIdentifier).Any() ? "is-invalid" : "is-valid";
}
}