2 instantiations of EditForm
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\EditFormTest.cs (2)
33var editForm = new EditForm 51var editForm = new EditForm();
23 references to EditForm
Microsoft.AspNetCore.Components.Web (8)
Forms\EditForm.cs (5)
21/// Constructs an instance of <see cref="EditForm"/>. 66/// Specifies the content to be rendered inside this <see cref="EditForm"/>. 103throw new InvalidOperationException($"{nameof(EditForm)} requires a {nameof(Model)} " + 108throw new InvalidOperationException($"{nameof(EditForm)} requires either a {nameof(Model)} " + 119$"{nameof(EditForm)}, do not also supply {nameof(OnValidSubmit)} or {nameof(OnInvalidSubmit)}.");
Forms\InputBase.cs (1)
65/// This property is uninitialized if the input does not have a parent <see cref="EditForm"/>.
Forms\ValidationMessage.cs (1)
46$"an {nameof(EditForm)}.");
Forms\ValidationSummary.cs (1)
48$"an {nameof(EditForm)}.");
Microsoft.AspNetCore.Components.Web.Tests (15)
Forms\EditFormTest.cs (15)
33var editForm = new EditForm 44Assert.StartsWith($"{nameof(EditForm)} requires a {nameof(EditForm.Model)} parameter, or an {nameof(EditContext)} parameter, but not both.", ex.Message); 51var editForm = new EditForm(); 58Assert.StartsWith($"{nameof(EditForm)} requires either a {nameof(EditForm.Model)} parameter, or an {nameof(EditContext)} parameter, please provide one of these.", ex.Message); 70var editFormComponent = await RenderAndGetTestEditFormComponentAsync(rootComponent); 91var editFormComponent = await RenderAndGetTestEditFormComponentAsync(rootComponent); 114.GetComponentFrames<EditForm>().Single().ComponentId; 145.GetComponentFrames<EditForm>().Single().ComponentId; 195.GetComponentFrames<EditForm>().Single().ComponentId; 207private static EditForm FindEditFormComponent(CapturedBatch batch) 211.OfType<EditForm>() 214private async Task<EditForm> RenderAndGetTestEditFormComponentAsync(TestEditFormHostComponent hostComponent) 256builder.OpenComponent<EditForm>(0);