我想自定义django-graphql-jwt中的@page "/"
@using WebApplication1.Data
@using WebApplication1.Resources
@inject LocService SharedLocalizer
@SharedLocalizer.GetLocalizedHtmlString("Title")
<EditForm Model="@Movie" OnValidSubmit="@HandleValidSubmit">
<DataAnnotationsValidator />
<ValidationSummary />
<InputText id="Title" bind-Value="@Movie.Title" />
<button type="submit">Submit</button>
</EditForm>
@functions {
private Movie Movie = new Movie();
private void HandleValidSubmit()
{
Console.WriteLine("OnValidSubmit");
}
}
public class Movie
{
public int Id { get; set; }
[Required(ErrorMessage = "titleRequired")]
[EmailAddress]
[Display(Name = "titleRequired")]
public string Title { get; set; }
}
行为。
我在文档中发现的唯一内容是customizing的Verify
行为。
如何正确覆盖此类?