Class IgbDateTimeInput
A date time input is an input field that lets you set and edit the date and time in a chosen input element
using customizable display and input formats.
Inheritance
System.Object
IgbDateTimeInput
Implements
System.IDisposable
Assembly: IgniteUI.Blazor.dll
public class IgbDateTimeInput : IgbMaskInputBase, RefSink, JsonSerializable, IDisposable
Constructors
Declaration
public IgbDateTimeInput()
Properties
Declaration
public EventCallback<IgbComponentDateValueChangedEventArgs> Change { get; set; }
Property Value
Declaration
public string ChangeScript { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
protected override string DirectRenderElementName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Format to display the value in when not editing.
Defaults to the locale format if not set.
Declaration
public string DisplayFormat { get; set; }
Property Value
| Type |
Description |
| System.String |
|
The date format to apply on the input.
Declaration
public string InputFormat { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Gets/Sets the locale used for formatting the display value.
Declaration
public string Locale { get; set; }
Property Value
| Type |
Description |
| System.String |
|
The maximum value required for the input to remain valid.
Declaration
public Nullable<DateTime> Max { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTime> |
|
The minimum value required for the input to remain valid.
Declaration
public Nullable<DateTime> Min { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTime> |
|
Delta values used to increment or decrement each date part on step actions.
All values default to 1.
Declaration
public IgbDatePartDeltas SpinDelta { get; set; }
Property Value
Sets whether to loop over the currently spun segment.
Declaration
public bool SpinLoop { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
protected override bool SupportsVisualChildren { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
Declaration
public override string Type { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Declaration
protected override bool UseDirectRender { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Overrides
Declaration
public Nullable<DateTime> Value { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.DateTime> |
|
Declaration
public EventCallback<Nullable<DateTime>> ValueChanged { get; set; }
Property Value
| Type |
Description |
| Microsoft.AspNetCore.Components.EventCallback<System.Nullable<System.DateTime>> |
|
Methods
Declaration
Clears the input element of user input.
Declaration
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
protected override void EnsureModulesLoaded()
Overrides
Declaration
public override object FindByName(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
| Type |
Description |
| System.Object |
|
Overrides
Declaration
public Nullable<DateTime> GetCurrentValue()
Returns
| Type |
Description |
| System.Nullable<System.DateTime> |
|
Declaration
public Task<Nullable<DateTime>> GetCurrentValueAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Nullable<System.DateTime>> |
|
Declaration
protected override string ResolveDisplay()
Returns
| Type |
Description |
| System.String |
|
Overrides
Declaration
Declaration
public void StepDown(DatePart datePart)
Parameters
Declaration
public void StepDown(Nullable<DatePart> datePart = null, double delta = -1)
Parameters
| Type |
Name |
Description |
| System.Nullable<DatePart> |
datePart |
|
| System.Double |
delta |
|
Declaration
public Task StepDownAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
public Task StepDownAsync(DatePart datePart)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
public Task StepDownAsync(Nullable<DatePart> datePart = null, double delta = -1)
Parameters
| Type |
Name |
Description |
| System.Nullable<DatePart> |
datePart |
|
| System.Double |
delta |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
Declaration
public void StepUp(DatePart datePart)
Parameters
Declaration
public void StepUp(Nullable<DatePart> datePart = null, double delta = -1)
Parameters
| Type |
Name |
Description |
| System.Nullable<DatePart> |
datePart |
|
| System.Double |
delta |
|
Declaration
public Task StepUpAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
public Task StepUpAsync(DatePart datePart)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
public Task StepUpAsync(Nullable<DatePart> datePart = null, double delta = -1)
Parameters
| Type |
Name |
Description |
| System.Nullable<DatePart> |
datePart |
|
| System.Double |
delta |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Implements
System.IDisposable