From ef817411656896b45d6b983b3d321cce7dab9e97 Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Fri, 30 Aug 2024 14:08:31 +0200 Subject: [PATCH] [Blazor] Binding - Custom input components - naming of demo components (#33494) --- aspnetcore/blazor/forms/binding.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/aspnetcore/blazor/forms/binding.md b/aspnetcore/blazor/forms/binding.md index 70f714ec4b..28424bcc49 100644 --- a/aspnetcore/blazor/forms/binding.md +++ b/aspnetcore/blazor/forms/binding.md @@ -295,7 +295,7 @@ The following example component: [!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)] -`InputBaseApproval.razor`: +`EngineeringApprovalInputDerived.razor`: ```razor @using System.Diagnostics.CodeAnalysis @@ -327,7 +327,7 @@ The following example component: } ``` -To use the preceding component in the [starship example form (`Starship3.razor`/`Starship.cs`)](xref:blazor/forms/input-components#example-form), replace the `
` block for the engineering approval field with an `InputBaseApproval` component instance bound to the model's `IsValidatedDesign` property: +To use the preceding component in the [starship example form (`Starship3.razor`/`Starship.cs`)](xref:blazor/forms/input-components#example-form), replace the `
` block for the engineering approval field with an `EngineeringApprovalInputDerived` component instance bound to the model's `IsValidatedDesign` property: ```diff -
@@ -336,7 +336,7 @@ To use the preceding component in the [starship example form (`Starship3.razor`/ - - -
-+ ++ ``` ### Input component with full developer control @@ -365,7 +365,7 @@ Code in the component includes: * invokes the delegate associated with the binding and dispatches an event notification to consumers that the value has changed. * If the component is used in an (the `EditContext` property isn't `null`), is called to trigger validation. -`FullControlApproval.razor`: +`EngineeringApprovalInputStandalone.razor`: ```razor @using System.Globalization @@ -414,7 +414,7 @@ Code in the component includes: } ``` -To use the preceding component in the [starship example form (`Starship3.razor`/`Starship.cs`)](xref:blazor/forms/input-components#example-form), replace the `
` block for the engineering approval field with a `FullControlApproval` component instance bound to the model's `IsValidatedDesign` property: +To use the preceding component in the [starship example form (`Starship3.razor`/`Starship.cs`)](xref:blazor/forms/input-components#example-form), replace the `
` block for the engineering approval field with a `EngineeringApprovalInputStandalone` component instance bound to the model's `IsValidatedDesign` property: ```diff -
@@ -423,13 +423,13 @@ To use the preceding component in the [starship example form (`Starship3.razor`/ - - -
-+ ++ ``` -The `FullControlApproval` component is also functional outside of an : +The `EngineeringApprovalInputStandalone` component is also functional outside of an : ```razor - +
ValidDesign: @ValidDesign