RadzenTimeSpanPicker component.
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenTimeSpanPicker<TValue> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IRadzenFormComponent| Name | Description |
|---|---|
| TValue | TYPEREF:System.TimeSpanTimeSpan/TYPEREF and nullable TYPEREF:System.TimeSpanTimeSpan/TYPEREF are supported. |
<RadzenTimeSpanPicker @bind-Value="@someValue" TValue="TimeSpan" Change=@(args => Console.WriteLine($"Selected time span: {args}")) />RadzenTimeSpanPicker component.
public RadzenTimeSpanPicker<TValue>()Specifies whether the value can be cleared.
public bool AllowClear { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether the value can be cleared. |
Specifies whether input in the input field is allowed. Set to true by default.
public bool AllowInput { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether input in the input field is allowed. Set to true by default. |
Specifies the callback of the underlying nullable TimeSpan value.
public EventCallback<TimeSpan?> Change { get; set; }
| Type | Description |
|---|---|
| EventCallback<TimeSpan?> | Specifies the callback of the underlying nullable TimeSpan value. |
Gets or sets the clear button aria label text.
public string ClearAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the clear button aria label text. |
Specifies the text of the confirmation button. Used only if ShowConfirmationButton is true.
public string ConfirmationButtonText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the text of the confirmation button. Used only if ShowConfirmationButton is true. |
Specifies the step of the days field in the picker panel.
public string DaysStep { get; set; }
| Type | Description |
|---|---|
| string | Specifies the step of the days field in the picker panel. |
Specifies the days label text.
public string DaysUnitText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the days label text. |
Specifies whether the input field is disabled.
public bool Disabled { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether the input field is disabled. |
Specifies the edit context of this component.
public Forms.EditContext EditContext { get; set; }
| Type | Description |
|---|---|
| Forms.EditContext | Specifies the edit context of this component. |
Gets the field identifier.
public Forms.FieldIdentifier FieldIdentifier { get; set; }
| Type | Description |
|---|---|
| Forms.FieldIdentifier | Gets the field identifier. |
Specifies the most precise time unit field in the picker panel. Set to Second by default.
public TimeSpanUnit FieldPrecision { get; set; }
| Type | Description |
|---|---|
| TimeSpanUnit | Specifies the most precise time unit field in the picker panel. Set to Second by default. |
Specifies the form this component belongs to.
public IRadzenForm Form { get; set; }
| Type | Description |
|---|---|
| IRadzenForm | Specifies the form this component belongs to. |
Specifies the RadzenFormField context of this component.
public IFormFieldContext FormFieldContext { get; set; }
| Type | Description |
|---|---|
| IFormFieldContext | Specifies the RadzenFormField context of this component. |
Gets the formatted value.
public string FormattedValue { get; }
| Type | Description |
|---|---|
| string | Gets the formatted value. |
Indicates whether this instance has a confirmed value.
public bool HasValue { get; }
| Type | Description |
|---|---|
| bool | Indicates whether this instance has a confirmed value. |
Specifies the step of the hours field in the picker panel.
public string HoursStep { get; set; }
| Type | Description |
|---|---|
| string | Specifies the step of the hours field in the picker panel. |
Specifies the hours label text.
public string HoursUnitText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the hours label text. |
Specifies whether the component is inline or shows a popup.
public bool Inline { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether the component is inline or shows a popup. |
Specifies additional custom attributes that will be rendered by the input.
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, object> | Specifies additional custom attributes that will be rendered by the input. |
Specifies the input CSS classes, separated with spaces.
public string InputClass { get; set; }
| Type | Description |
|---|---|
| string | Specifies the input CSS classes, separated with spaces. |
Indicates whether this instance is bound ValueChanged callback has delegate).
public bool IsBound { get; }
| Type | Description |
|---|---|
| bool | Indicates whether this instance is bound ValueChanged callback has delegate). |
Specifies the maximum time span allowed.
public TimeSpan Max { get; set; }
| Type | Description |
|---|---|
| TimeSpan | Specifies the maximum time span allowed. |
Specifies the step of the microseconds field in the picker panel.
public string MicrosecondsStep { get; set; }
| Type | Description |
|---|---|
| string | Specifies the step of the microseconds field in the picker panel. |
Specifies the microseconds label text.
public string MicrosecondsUnitText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the microseconds label text. |
Specifies the step of the milliseconds field in the picker panel.
public string MillisecondsStep { get; set; }
| Type | Description |
|---|---|
| string | Specifies the step of the milliseconds field in the picker panel. |
Specifies the milliseconds label text.
public string MillisecondsUnitText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the milliseconds label text. |
Specifies the minimum time span allowed.
public TimeSpan Min { get; set; }
| Type | Description |
|---|---|
| TimeSpan | Specifies the minimum time span allowed. |
Specifies the step of the minutes field in the picker panel.
public string MinutesStep { get; set; }
| Type | Description |
|---|---|
| string | Specifies the step of the minutes field in the picker panel. |
Specifies the minutes label text.
public string MinutesUnitText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the minutes label text. |
Specifies the name of the input field.
public string Name { get; set; }
| Type | Description |
|---|---|
| string | Specifies the name of the input field. |
Specifies the text of the negative value button.
public string NegativeButtonText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the text of the negative value button. |
Specifies the text displayed next to the fields in the panel when the value is negative and there's no sign picker.
public string NegativeValueText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the text displayed next to the fields in the panel when the value is negative and there's no sign picker. |
Specifies whether the time fields in the panel, except for the days field, are padded with leading zeros.
public bool PadTimeValues { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether the time fields in the panel, except for the days field, are padded with leading zeros. |
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.
public Func<string, TimeSpan?> ParseInput { get; set; }
| 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. |
Specifies the input placeholder.
public string Placeholder { get; set; }
| Type | Description |
|---|---|
| string | Specifies the input placeholder. |
Specifies the aria label for the popup.
public string PopupAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Specifies the aria label for the popup. |
Specifies the popup toggle button CSS classes, separated with spaces.
public string PopupButtonClass { get; set; }
| Type | Description |
|---|---|
| string | Specifies the popup toggle button CSS classes, separated with spaces. |
Specifies the render mode of the popup.
public PopupRenderMode PopupRenderMode { get; set; }
| Type | Description |
|---|---|
| PopupRenderMode | Specifies the render mode of the popup. |
Specifies the text of the positive value button.
public string PositiveButtonText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the text of the positive value button. |
Specifies the text displayed next to the fields in the panel when the value is positive and there's no sign picker.
public string PositiveValueText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the text displayed next to the fields in the panel when the value is positive and there's no sign picker. |
Specifies whether the input field is read only.
public bool ReadOnly { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether the input field is read only. |
Specifies the step of the seconds field in the picker panel.
public string SecondsStep { get; set; }
| Type | Description |
|---|---|
| string | Specifies the step of the seconds field in the picker panel. |
Specifies the seconds label text.
public string SecondsUnitText { get; set; }
| Type | Description |
|---|---|
| string | Specifies the seconds label text. |
Specifies whether to display the confirmation button in the panel to accept changes.
public bool ShowConfirmationButton { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether to display the confirmation button in the panel to accept changes. |
Specifies whether to display popup icon button in the input field.
public bool ShowPopupButton { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether to display popup icon button in the input field. |
Specifies the tab index.
public int TabIndex { get; set; }
| Type | Description |
|---|---|
| int | Specifies the tab index. |
Specifies the time span format in the input field. For more details, see the documentation of and time span format strings.
public string TimeSpanFormat { get; set; }
| Type | Description |
|---|---|
| string | Specifies the time span format in the input field. For more details, see the documentation of and time span format strings. |
Specifies the aria label for the toggle popup button.
public string TogglePopupAriaLabel { get; set; }
| Type | Description |
|---|---|
| string | Specifies the aria label for the toggle popup button. |
Specifies the value of the component.
public TValue Value { get; set; }
| Type | Description |
|---|---|
| TValue | Specifies the value of the component. |
Specifies the callback of the value change.
public EventCallback<TValue> ValueChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<TValue> | Specifies the callback of the value change. |
Specifies the value expression used while creating the FieldIdentifier.
public Expressions.Expression<Func<TValue>> ValueExpression { get; set; }
| Type | Description |
|---|---|
| Expressions.Expression<Func<TValue>> | Specifies the value expression used while creating the FieldIdentifier. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Gets the value of the component.
public object GetValue()
| Type | Description |
|---|---|
| object | System.Object. |
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
| Type | Description |
|---|---|
| Task |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |