DateInputTValue Class

Blazor Bootstrap DateInputTValue component is constructed using an HTML input of type="date" which limits user input based on pre-defined parameters. This component enables users to input a date using a text box with validation or a special date picker interface.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class DateInput<TValue> : BlazorBootstrapComponentBase
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase    DateInputTValue

Type Parameters

TValue
Date type to insert: DateTimeOffset, DateTime, DateOnly and their NullableT> variants are supported.

Constructors

DateInputTValueInitializes a new instance of the DateInputTValue class

Properties

AutoComplete If , DateInput can complete the values automatically by the browser.
Disabled Gets or sets the disabled state.
EnableMinMax Determines whether to restrict the user input to Min and Max range. If , restricts the user input between the Min and Max range. Else accepts the user input.
Max Gets or sets the max. Allowed format is yyyy-mm-dd.
Min Gets or sets the min. Allowed format is yyyy-mm-dd.
Placeholder Gets or sets the placeholder.
Value Gets or sets the value.
ValueChanged This event fired on every user keystroke that changes the DateInput value.
ValueExpression An expression that identifies the bound value.

Methods

Disable Disables currency input.
Enable Enables currency input.
SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

Exceptions

InvalidOperationExceptionThrown if TValue isn't of type DateTime. DateOnly or their NullableT> alternatives.
InvalidOperationExceptionThrown if Min is larger than Max and EnableMinMax is

See Also