TimeInputTValue Class

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

Definition

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

Type Parameters

TValue
Time datatype to insert: TimeOnly and its NullableT> variant are supported.

Constructors

TimeInputTValueInitializes a new instance of the TimeInputTValue 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 hh:mm.
Min Gets or sets the min. Allowed format is hh:mm.
Placeholder Gets or sets the placeholder.
Value Gets or sets the value.
ValueChanged This event fired on every user keystroke that changes the TimeInput 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 TimeOnly or its NullableT> alternative.
InvalidOperationExceptionThrown if Min is larger than Max and EnableMinMax is

See Also