dotnet/aspnetcore

EditForm: Add method to submit form async

Open

#10,953 opened on 2019年6月6日

GitHub で見る
 (12 comments) (11 reactions) (0 assignees)C# (10,653 forks)batch import
Pillar: Complete Blazor Webaffected-fewarea-blazorenhancementfeature-blazor-builtin-componentshelp wantedseverity-minor

Repository metrics

Stars
 (37,933 stars)
PR merge metrics
 (平均マージ 16d 9h) (30d で 258 merged PRs)

説明

Right now you can only submit the EditForm by adding a button[type=submit] and clicking it. I'd like to have a way to manually invoke the form submit with a method. Something like

<EditForm Model=@model ref="myForm"> <button on click="@(() => myForm.Submit())">Click me</button> </EditForm>

コントリビューターガイド