Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor InputX form components #26753

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@
},
{
"source_path": "aspnetcore/razor-components/forms-validation.md",
"redirect_url": "/aspnet/core/blazor/forms-validation",
"redirect_url": "/aspnet/core/blazor/forms-and-input-components",
"redirect_document_id": false
},
{
Expand Down Expand Up @@ -1173,6 +1173,11 @@
"source_path": "aspnetcore/tutorials/signalr-blazor.md",
"redirect_url": "/aspnet/core/blazor/tutorials/signalr-blazor",
"redirect_document_id": false
},
{
"source_path": "aspnetcore/blazor/forms-validation.md",
"redirect_url": "/aspnet/core/blazor/forms-and-input-components",
"redirect_document_id": false
}
]
}
64 changes: 32 additions & 32 deletions aspnetcore/blazor/components/built-in-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ The following built-in Razor components are provided by the Blazor framework:
* [`FocusOnNavigate`](xref:blazor/fundamentals/routing#focus-an-element-on-navigation)
* [`HeadContent`](xref:blazor/components/control-head-content)
* [`HeadOutlet`](xref:blazor/components/control-head-content)
* [`InputCheckbox`](xref:blazor/forms-validation#built-in-form-components)
* [`InputDate`](xref:blazor/forms-validation#built-in-form-components)
* [`InputCheckbox`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputDate`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputFile`](xref:blazor/file-uploads)
* [`InputNumber`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadio`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadioGroup`](xref:blazor/forms-validation#built-in-form-components)
* [`InputSelect`](xref:blazor/forms-validation#built-in-form-components)
* [`InputText`](xref:blazor/forms-validation#built-in-form-components)
* [`InputTextArea`](xref:blazor/forms-validation#built-in-form-components)
* [`InputNumber`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadio`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadioGroup`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputSelect`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputText`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputTextArea`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`LayoutView`](xref:blazor/components/layouts#apply-a-layout-to-arbitrary-content-layoutview-component)
* [`MainLayout`](xref:blazor/components/layouts#mainlayout-component)
* [`NavLink`](xref:blazor/fundamentals/routing#navlink-and-navmenu-components)
Expand All @@ -53,15 +53,15 @@ The following built-in Razor components are provided by ASP.NET Core:
* [`Authentication`](xref:blazor/security/webassembly/index#authentication-component)
* [`AuthorizeView`](xref:blazor/security/index#authorizeview-component)
* [`CascadingValue`](xref:blazor/components/cascading-values-and-parameters#cascadingvalue-component)
* [`InputCheckbox`](xref:blazor/forms-validation#built-in-form-components)
* [`InputDate`](xref:blazor/forms-validation#built-in-form-components)
* [`InputCheckbox`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputDate`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputFile`](xref:blazor/file-uploads)
* [`InputNumber`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadio`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadioGroup`](xref:blazor/forms-validation#built-in-form-components)
* [`InputSelect`](xref:blazor/forms-validation#built-in-form-components)
* [`InputText`](xref:blazor/forms-validation#built-in-form-components)
* [`InputTextArea`](xref:blazor/forms-validation#built-in-form-components)
* [`InputNumber`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadio`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadioGroup`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputSelect`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputText`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputTextArea`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`LayoutView`](xref:blazor/components/layouts#apply-a-layout-to-arbitrary-content-layoutview-component)
* [`MainLayout`](xref:blazor/components/layouts#mainlayout-component)
* [`NavLink`](xref:blazor/fundamentals/routing#navlink-and-navmenu-components)
Expand All @@ -80,14 +80,14 @@ The following built-in Razor components are provided by the Blazor framework:
* [`Authentication`](xref:blazor/security/webassembly/index#authentication-component)
* [`AuthorizeView`](xref:blazor/security/index#authorizeview-component)
* [`CascadingValue`](xref:blazor/components/cascading-values-and-parameters#cascadingvalue-component)
* [`InputCheckbox`](xref:blazor/forms-validation#built-in-form-components)
* [`InputDate`](xref:blazor/forms-validation#built-in-form-components)
* [`InputNumber`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadio`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadioGroup`](xref:blazor/forms-validation#built-in-form-components)
* [`InputSelect`](xref:blazor/forms-validation#built-in-form-components)
* [`InputText`](xref:blazor/forms-validation#built-in-form-components)
* [`InputTextArea`](xref:blazor/forms-validation#built-in-form-components)
* [`InputCheckbox`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputDate`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputNumber`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadio`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadioGroup`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputSelect`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputText`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputTextArea`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`LayoutView`](xref:blazor/components/layouts#apply-a-layout-to-arbitrary-content-layoutview-component)
* [`MainLayout`](xref:blazor/components/layouts#mainlayout-component)
* [`NavLink`](xref:blazor/fundamentals/routing#navlink-and-navmenu-components)
Expand All @@ -110,15 +110,15 @@ The following built-in Razor components are provided by the Blazor framework:
* [`FocusOnNavigate`](xref:blazor/fundamentals/routing#focus-an-element-on-navigation)
* [`HeadContent`](xref:blazor/components/control-head-content)
* [`HeadOutlet`](xref:blazor/components/control-head-content)
* [`InputCheckbox`](xref:blazor/forms-validation#built-in-form-components)
* [`InputDate`](xref:blazor/forms-validation#built-in-form-components)
* [`InputCheckbox`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputDate`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputFile`](xref:blazor/file-uploads)
* [`InputNumber`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadio`](xref:blazor/forms-validation#built-in-form-components)
* [`InputRadioGroup`](xref:blazor/forms-validation#built-in-form-components)
* [`InputSelect`](xref:blazor/forms-validation#built-in-form-components)
* [`InputText`](xref:blazor/forms-validation#built-in-form-components)
* [`InputTextArea`](xref:blazor/forms-validation#built-in-form-components)
* [`InputNumber`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadio`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputRadioGroup`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputSelect`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputText`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`InputTextArea`](xref:blazor/forms-and-input-components#built-in-input-components)
* [`LayoutView`](xref:blazor/components/layouts#apply-a-layout-to-arbitrary-content-layoutview-component)
* [`MainLayout`](xref:blazor/components/layouts#mainlayout-component)
* [`NavLink`](xref:blazor/fundamentals/routing#navlink-and-navmenu-components)
Expand Down
32 changes: 16 additions & 16 deletions aspnetcore/blazor/components/data-binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ For the `oninput` event (`@bind:event="oninput"`), a value reversion occurs afte

* Don't use the `oninput` event. Use the default `onchange` event, where an invalid value isn't reverted until the element loses focus.
* Bind to a nullable type, such as `int?` or `string` and provide [custom `get` and `set` accessor logic](#custom-binding-formats) to handle invalid entries.
* Use a [form validation component](xref:blazor/forms-validation), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Use a [form validation component](xref:blazor/forms-and-input-components), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Permit the user to provide invalid input and receive validation errors on the associated <xref:Microsoft.AspNetCore.Components.Forms.EditContext>.
* Display validation errors in the UI without interfering with the user entering additional webform data.

Expand Down Expand Up @@ -262,9 +262,9 @@ For an alternative approach suited to sharing data in memory and across componen
## Additional resources

* [Parameter change detection and additional guidance on Razor component rendering](xref:blazor/components/rendering)
* <xref:blazor/forms-validation>
* [Binding to radio buttons in a form](xref:blazor/forms-validation#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-validation#binding-inputselect-options-to-c-object-null-values)
* <xref:blazor/forms-and-input-components>
* [Binding to radio buttons in a form](xref:blazor/forms-and-input-components#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-and-input-components#binding-inputselect-options-to-c-object-null-values)
* [ASP.NET Core Blazor event handling: `EventCallback` section](xref:blazor/components/event-handling#eventcallback)
* [Blazor samples GitHub repository (`dotnet/blazor-samples`)](https://github.com/dotnet/blazor-samples)

Expand Down Expand Up @@ -336,7 +336,7 @@ For the `oninput` event (`@bind:event="oninput"`), a value reversion occurs afte

* Don't use the `oninput` event. Use the default `onchange` event, where an invalid value isn't reverted until the element loses focus.
* Bind to a nullable type, such as `int?` or `string` and provide [custom `get` and `set` accessor logic](#custom-binding-formats) to handle invalid entries.
* Use a [form validation component](xref:blazor/forms-validation), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Use a [form validation component](xref:blazor/forms-and-input-components), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Permit the user to provide invalid input and receive validation errors on the associated <xref:Microsoft.AspNetCore.Components.Forms.EditContext>.
* Display validation errors in the UI without interfering with the user entering additional webform data.

Expand Down Expand Up @@ -459,9 +459,9 @@ For an alternative approach suited to sharing data in memory and across componen
## Additional resources

* [Parameter change detection and additional guidance on Razor component rendering](xref:blazor/components/rendering)
* <xref:blazor/forms-validation>
* [Binding to radio buttons in a form](xref:blazor/forms-validation#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-validation#binding-inputselect-options-to-c-object-null-values)
* <xref:blazor/forms-and-input-components>
* [Binding to radio buttons in a form](xref:blazor/forms-and-input-components#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-and-input-components#binding-inputselect-options-to-c-object-null-values)
* [ASP.NET Core Blazor event handling: `EventCallback` section](xref:blazor/components/event-handling#eventcallback)
* [Blazor samples GitHub repository (`dotnet/blazor-samples`)](https://github.com/dotnet/blazor-samples)

Expand Down Expand Up @@ -533,7 +533,7 @@ For the `oninput` event (`@bind:event="oninput"`), a value reversion occurs afte

* Don't use the `oninput` event. Use the default `onchange` event, where an invalid value isn't reverted until the element loses focus.
* Bind to a nullable type, such as `int?` or `string` and provide [custom `get` and `set` accessor logic](#custom-binding-formats) to handle invalid entries.
* Use a [form validation component](xref:blazor/forms-validation), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Use a [form validation component](xref:blazor/forms-and-input-components), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Permit the user to provide invalid input and receive validation errors on the associated <xref:Microsoft.AspNetCore.Components.Forms.EditContext>.
* Display validation errors in the UI without interfering with the user entering additional webform data.

Expand Down Expand Up @@ -656,9 +656,9 @@ For an alternative approach suited to sharing data in memory and across componen
## Additional resources

* [Parameter change detection and additional guidance on Razor component rendering](xref:blazor/components/rendering)
* <xref:blazor/forms-validation>
* [Binding to radio buttons in a form](xref:blazor/forms-validation#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-validation#binding-inputselect-options-to-c-object-null-values)
* <xref:blazor/forms-and-input-components>
* [Binding to radio buttons in a form](xref:blazor/forms-and-input-components#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-and-input-components#binding-inputselect-options-to-c-object-null-values)
* [ASP.NET Core Blazor event handling: `EventCallback` section](xref:blazor/components/event-handling#eventcallback)
* [Blazor samples GitHub repository (`dotnet/blazor-samples`)](https://github.com/dotnet/blazor-samples)

Expand Down Expand Up @@ -791,7 +791,7 @@ For the `oninput` event (`@bind:event="oninput"`), a value reversion occurs afte

* Don't use the `oninput` event. Use the default `onchange` event, where an invalid value isn't reverted until the element loses focus.
* Bind to a nullable type, such as `int?` or `string` and provide [custom `get` and `set` accessor logic](#custom-binding-formats) to handle invalid entries.
* Use a [form validation component](xref:blazor/forms-validation), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Use a [form validation component](xref:blazor/forms-and-input-components), such as <xref:Microsoft.AspNetCore.Components.Forms.InputNumber%601> or <xref:Microsoft.AspNetCore.Components.Forms.InputDate%601>. Form validation components provide built-in support to manage invalid inputs. Form validation components:
* Permit the user to provide invalid input and receive validation errors on the associated <xref:Microsoft.AspNetCore.Components.Forms.EditContext>.
* Display validation errors in the UI without interfering with the user entering additional webform data.

Expand Down Expand Up @@ -914,9 +914,9 @@ For an alternative approach suited to sharing data in memory and across componen
## Additional resources

* [Parameter change detection and additional guidance on Razor component rendering](xref:blazor/components/rendering)
* <xref:blazor/forms-validation>
* [Binding to radio buttons in a form](xref:blazor/forms-validation#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-validation#binding-inputselect-options-to-c-object-null-values)
* <xref:blazor/forms-and-input-components>
* [Binding to radio buttons in a form](xref:blazor/forms-and-input-components#radio-buttons)
* [Binding `InputSelect` options to C# object `null` values](xref:blazor/forms-and-input-components#binding-inputselect-options-to-c-object-null-values)
* [ASP.NET Core Blazor event handling: `EventCallback` section](xref:blazor/components/event-handling#eventcallback)
* [Blazor samples GitHub repository (`dotnet/blazor-samples`)](https://github.com/dotnet/blazor-samples)

Expand Down
Loading