RadzenTimeSpanPicker<TValue> Class

RadzenTimeSpanPicker component.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenTimeSpanPicker<TValue>

Implements

IComponent

IHandleEvent

IHandleAfterRender

IRadzenFormComponent

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenTimeSpanPicker<TValue> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent

Type Parameters

Name Description
TValueTYPEREF:System.TimeSpanTimeSpan/TYPEREF and nullable TYPEREF:System.TimeSpanTimeSpan/TYPEREF are supported.

Examples

<RadzenTimeSpanPicker @bind-Value="@someValue" TValue="TimeSpan" Change=@(args => Console.WriteLine($"Selected time span: {args}")) />

Constructors

RadzenTimeSpanPicker<TValue>link

RadzenTimeSpanPicker component.

Declaration
public RadzenTimeSpanPicker<TValue>()

Fields

inputlink

Gets the input reference.

Declaration
protected ElementReference input

Properties

AllowClearlink

Specifies whether the value can be cleared.

Declaration
public bool AllowClear { get; set; }
Property Value
Type Description
boolSpecifies whether the value can be cleared.

AllowInputlink

Specifies whether input in the input field is allowed. Set to true by default.

Declaration
public bool AllowInput { get; set; }
Property Value
Type Description
boolSpecifies whether input in the input field is allowed. Set to true by default.

Changelink

Specifies the callback of the underlying nullable TimeSpan value.

Declaration
public EventCallback<TimeSpan?> Change { get; set; }
Property Value
Type Description
EventCallback<TimeSpan?>Specifies the callback of the underlying nullable TimeSpan value.

ClearAriaLabellink

Gets or sets the clear button aria label text.

Declaration
public string ClearAriaLabel { get; set; }
Property Value
Type Description
stringGets or sets the clear button aria label text.

ConfirmationButtonTextlink

Specifies the text of the confirmation button. Used only if ShowConfirmationButton is true.

Declaration
public string ConfirmationButtonText { get; set; }
Property Value
Type Description
stringSpecifies the text of the confirmation button. Used only if ShowConfirmationButton is true.

DaysSteplink

Specifies the step of the days field in the picker panel.

Declaration
public string DaysStep { get; set; }
Property Value
Type Description
stringSpecifies the step of the days field in the picker panel.

DaysUnitTextlink

Specifies the days label text.

Declaration
public string DaysUnitText { get; set; }
Property Value
Type Description
stringSpecifies the days label text.

Disabledlink

Specifies whether the input field is disabled.

Declaration
public bool Disabled { get; set; }
Property Value
Type Description
boolSpecifies whether the input field is disabled.

EditContextlink

Specifies the edit context of this component.

Declaration
public Forms.EditContext EditContext { get; set; }
Property Value
Type Description
Forms.EditContextSpecifies the edit context of this component.

FieldIdentifierlink

Gets the field identifier.

Declaration
public Forms.FieldIdentifier FieldIdentifier { get; set; }
Property Value
Type Description
Forms.FieldIdentifierGets the field identifier.

FieldPrecisionlink

Specifies the most precise time unit field in the picker panel. Set to Second by default.

Declaration
public TimeSpanUnit FieldPrecision { get; set; }
Property Value
Type Description
TimeSpanUnitSpecifies the most precise time unit field in the picker panel. Set to Second by default.

Specifies the form this component belongs to.

Declaration
public IRadzenForm Form { get; set; }
Property Value
Type Description
IRadzenFormSpecifies the form this component belongs to.

FormFieldContextlink

Specifies the RadzenFormField context of this component.

Declaration
public IFormFieldContext FormFieldContext { get; set; }
Property Value
Type Description
IFormFieldContextSpecifies the RadzenFormField context of this component.

FormattedValuelink

Gets the formatted value.

Declaration
public string FormattedValue { get; }
Property Value
Type Description
stringGets the formatted value.

HasValuelink

Indicates whether this instance has a confirmed value.

Declaration
public bool HasValue { get; }
Property Value
Type Description
boolIndicates whether this instance has a confirmed value.

HoursSteplink

Specifies the step of the hours field in the picker panel.

Declaration
public string HoursStep { get; set; }
Property Value
Type Description
stringSpecifies the step of the hours field in the picker panel.

HoursUnitTextlink

Specifies the hours label text.

Declaration
public string HoursUnitText { get; set; }
Property Value
Type Description
stringSpecifies the hours label text.

Inlinelink

Specifies whether the component is inline or shows a popup.

Declaration
public bool Inline { get; set; }
Property Value
Type Description
boolSpecifies whether the component is inline or shows a popup.

InputAttributeslink

Specifies additional custom attributes that will be rendered by the input.

Declaration
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
Property Value
Type Description
IReadOnlyDictionary<string, object>Specifies additional custom attributes that will be rendered by the input.

InputClasslink

Specifies the input CSS classes, separated with spaces.

Declaration
public string InputClass { get; set; }
Property Value
Type Description
stringSpecifies the input CSS classes, separated with spaces.

IsBoundlink

Indicates whether this instance is bound ValueChanged callback has delegate).

Declaration
public bool IsBound { get; }
Property Value
Type Description
boolIndicates whether this instance is bound ValueChanged callback has delegate).

Maxlink

Specifies the maximum time span allowed.

Declaration
public TimeSpan Max { get; set; }
Property Value
Type Description
TimeSpanSpecifies the maximum time span allowed.

MicrosecondsSteplink

Specifies the step of the microseconds field in the picker panel.

Declaration
public string MicrosecondsStep { get; set; }
Property Value
Type Description
stringSpecifies the step of the microseconds field in the picker panel.

MicrosecondsUnitTextlink

Specifies the microseconds label text.

Declaration
public string MicrosecondsUnitText { get; set; }
Property Value
Type Description
stringSpecifies the microseconds label text.

MillisecondsSteplink

Specifies the step of the milliseconds field in the picker panel.

Declaration
public string MillisecondsStep { get; set; }
Property Value
Type Description
stringSpecifies the step of the milliseconds field in the picker panel.

MillisecondsUnitTextlink

Specifies the milliseconds label text.

Declaration
public string MillisecondsUnitText { get; set; }
Property Value
Type Description
stringSpecifies the milliseconds label text.

Minlink

Specifies the minimum time span allowed.

Declaration
public TimeSpan Min { get; set; }
Property Value
Type Description
TimeSpanSpecifies the minimum time span allowed.

MinutesSteplink

Specifies the step of the minutes field in the picker panel.

Declaration
public string MinutesStep { get; set; }
Property Value
Type Description
stringSpecifies the step of the minutes field in the picker panel.

MinutesUnitTextlink

Specifies the minutes label text.

Declaration
public string MinutesUnitText { get; set; }
Property Value
Type Description
stringSpecifies the minutes label text.

Namelink

Specifies the name of the input field.

Declaration
public string Name { get; set; }
Property Value
Type Description
stringSpecifies the name of the input field.

NegativeButtonTextlink

Specifies the text of the negative value button.

Declaration
public string NegativeButtonText { get; set; }
Property Value
Type Description
stringSpecifies the text of the negative value button.

NegativeValueTextlink

Specifies the text displayed next to the fields in the panel when the value is negative and there's no sign picker.

Declaration
public string NegativeValueText { get; set; }
Property Value
Type Description
stringSpecifies the text displayed next to the fields in the panel when the value is negative and there's no sign picker.

PadTimeValueslink

Specifies whether the time fields in the panel, except for the days field, are padded with leading zeros.

Declaration
public bool PadTimeValues { get; set; }
Property Value
Type Description
boolSpecifies whether the time fields in the panel, except for the days field, are padded with leading zeros.

ParseInputlink

Specifies custom function to parse the input. If it's not defined or the function it returns null, a built-in parser us used instead.

Declaration
public Func<string, TimeSpan?> ParseInput { get; set; }
Property Value
Type Description
Func<string, TimeSpan?>Specifies custom function to parse the input. If it's not defined or the function it returns null, a built-in parser us used instead.

Placeholderlink

Specifies the input placeholder.

Declaration
public string Placeholder { get; set; }
Property Value
Type Description
stringSpecifies the input placeholder.

PopupAriaLabellink

Specifies the aria label for the popup.

Declaration
public string PopupAriaLabel { get; set; }
Property Value
Type Description
stringSpecifies the aria label for the popup.

PopupButtonClasslink

Specifies the popup toggle button CSS classes, separated with spaces.

Declaration
public string PopupButtonClass { get; set; }
Property Value
Type Description
stringSpecifies the popup toggle button CSS classes, separated with spaces.

PopupRenderModelink

Specifies the render mode of the popup.

Declaration
public PopupRenderMode PopupRenderMode { get; set; }
Property Value
Type Description
PopupRenderModeSpecifies the render mode of the popup.

PositiveButtonTextlink

Specifies the text of the positive value button.

Declaration
public string PositiveButtonText { get; set; }
Property Value
Type Description
stringSpecifies the text of the positive value button.

PositiveValueTextlink

Specifies the text displayed next to the fields in the panel when the value is positive and there's no sign picker.

Declaration
public string PositiveValueText { get; set; }
Property Value
Type Description
stringSpecifies the text displayed next to the fields in the panel when the value is positive and there's no sign picker.

ReadOnlylink

Specifies whether the input field is read only.

Declaration
public bool ReadOnly { get; set; }
Property Value
Type Description
boolSpecifies whether the input field is read only.

SecondsSteplink

Specifies the step of the seconds field in the picker panel.

Declaration
public string SecondsStep { get; set; }
Property Value
Type Description
stringSpecifies the step of the seconds field in the picker panel.

SecondsUnitTextlink

Specifies the seconds label text.

Declaration
public string SecondsUnitText { get; set; }
Property Value
Type Description
stringSpecifies the seconds label text.

ShowConfirmationButtonlink

Specifies whether to display the confirmation button in the panel to accept changes.

Declaration
public bool ShowConfirmationButton { get; set; }
Property Value
Type Description
boolSpecifies whether to display the confirmation button in the panel to accept changes.

ShowPopupButtonlink

Specifies whether to display popup icon button in the input field.

Declaration
public bool ShowPopupButton { get; set; }
Property Value
Type Description
boolSpecifies whether to display popup icon button in the input field.

TabIndexlink

Specifies the tab index.

Declaration
public int TabIndex { get; set; }
Property Value
Type Description
intSpecifies the tab index.

TimeSpanFormatlink

Specifies the time span format in the input field. For more details, see the documentation of and time span format strings.

Declaration
public string TimeSpanFormat { get; set; }
Property Value
Type Description
stringSpecifies the time span format in the input field. For more details, see the documentation of and time span format strings.

TogglePopupAriaLabellink

Specifies the aria label for the toggle popup button.

Declaration
public string TogglePopupAriaLabel { get; set; }
Property Value
Type Description
stringSpecifies the aria label for the toggle popup button.

Valuelink

Specifies the value of the component.

Declaration
public TValue Value { get; set; }
Property Value
Type Description
TValueSpecifies the value of the component.

ValueChangedlink

Specifies the callback of the value change.

Declaration
public EventCallback<TValue> ValueChanged { get; set; }
Property Value
Type Description
EventCallback<TValue>Specifies the callback of the value change.

ValueExpressionlink

Specifies the value expression used while creating the FieldIdentifier.

Declaration
public Expressions.Expression<Func<TValue>> ValueExpression { get; set; }
Property Value
Type Description
Expressions.Expression<Func<TValue>>Specifies the value expression used while creating the FieldIdentifier.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Closelink

Closes this instance popup.

Declaration
public Task Close()
Returns
Type Description
Task

Disposelink

Declaration
public override void Dispose()

FocusAsynclink

Declaration
public ValueTask FocusAsync()
Returns
Type Description
ValueTask

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

GetValuelink

Gets the value of the component.

Declaration
public object GetValue()
Returns
Type Description
objectSystem.Object.

OnAfterRenderAsynclink

Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type Name Description
bool firstRender
Returns
Type Description
Task

OnInitializedlink

Declaration
protected override void OnInitialized()

SetParametersAsynclink

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
Task
An error has occurred. This app may no longer respond until reloaded. Reload 🗙