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

Implements
  • IComponent
  • IHandleEvent
  • IHandleAfterRender
  • JsonSerializable
  • IDisposable

constructor

public IgbDateTimeInput()

Returns IgbDateTimeInput

Inherited from: IgbDateTimeInputBase

Gets the components default event behavior.

protected override ControlEventBehavior DefaultEventBehavior { get; }

Inherited from: IgbDateTimeInputBase

Whether the control will have outlined appearance. false

[Parameter]
public bool Outlined { get; set; }

Inherited from: IgbDateTimeInputBase

The placeholder attribute of the control.

[Parameter]
public string Placeholder { get; set; }

Inherited from: IgbDateTimeInputBase

The label for the control.

[Parameter]
public string Label { get; set; }

Inherited from: IgbDateTimeInputBase

[Parameter]
public string InputFormat { get; set; }

Inherited from: IgbDateTimeInputBase

The minimum value required for the input to remain valid.

[Parameter]
public DateTime? Min { get; set; }

Inherited from: IgbDateTimeInputBase

The maximum value required for the input to remain valid.

[Parameter]
public DateTime? Max { get; set; }

Inherited from: IgbDateTimeInputBase

Format to display the value in when not editing. Defaults to the locale format if not set.

[Parameter]
public string DisplayFormat { get; set; }

Inherited from: IgbDateTimeInputBase

Delta values used to increment or decrement each date part on step actions. All values default to 1.

[Parameter]
public IgbDatePartDeltas SpinDelta { get; set; }

Inherited from: IgbDateTimeInputBase

Sets whether to loop over the currently spun segment.

[Parameter]
public bool SpinLoop { get; set; }

Inherited from: IgbDateTimeInputBase

Gets/Sets the locale used for formatting the display value.

[Parameter]
public string Locale { get; set; }

Inherited from: IgbDateTimeInputBase

Makes the control a readonly field. false

[Parameter]
public bool ReadOnly { get; set; }

Inherited from: IgbDateTimeInputBase

The mask pattern of the component.

[Parameter]
public string Mask { get; set; }

Inherited from: IgbDateTimeInputBase

The prompt symbol to use for unfilled parts of the mask pattern. '_'

[Parameter]
public string Prompt { get; set; }

Inherited from: IgbDateTimeInputBase

The disabled state of the component

[Parameter]
public bool Disabled { get; set; }

Inherited from: IgbDateTimeInputBase

Makes the control a required field in a form context.

[Parameter]
public bool Required { get; set; }

Inherited from: IgbDateTimeInputBase

Control the validity of the control.

[Parameter]
public bool Invalid { get; set; }

Inherited from: BaseRendererControl

[Inject]
protected IIgniteUIBlazor IgBlazor { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Height { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Width { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public string Class { get; set; }

Inherited from: BaseRendererControl

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object> AdditionalAttributes { get; set; }

Inherited from: BaseRendererControl

protected virtual string ParentTypeName { get; }

Inherited from: BaseRendererControl

Gets or sets how events are bubbled up from JavaScript to Blazor.

[Parameter]
public ControlEventBehavior EventBehavior { get; set; }

Inherited from: BaseRendererControl

[Parameter]
public RenderFragment ChildContent { get; set; }

Inherited from: BaseRendererControl

Gets or sets what type of date conversion to make when round tripping dates.

[Parameter]
public RoundTripDateConversion RoundTripDateConversion { get; set; }

Inherited from: BaseRendererControl

protected virtual bool UseDirectRender { get; }

Inherited from: BaseRendererControl

protected virtual string DirectRenderElementName { get; }

Inherited from: BaseRendererControl

protected virtual bool NeedsDynamicContent { get; }

Inherited from: BaseRendererControl

protected virtual bool UseCamelEnumValues { get; }
protected override bool SupportsVisualChildren { get; }
public override string Type { get; }

The value of the input.

[Parameter]
public DateTime? Value { get; set; }

Inherited from: BaseRendererControl

protected Dictionary<Type, Dictionary<string, FieldInfo>> eventCallbacksCache

Inherited from: BaseRendererControl

protected string _cachedSerializedContent

Inherited from: IgbDateTimeInputBase

public Task SetNativeElementAsync(object element)

Parameters

  • element: object

Returns any

Inherited from: IgbDateTimeInputBase

public void SetNativeElement(object element)

Parameters

  • element: object

Returns any

Inherited from: IgbDateTimeInputBase

Selects all the text inside the input.

public Task SelectAsync()

Returns any

Inherited from: IgbDateTimeInputBase

public void Select()

Returns any

FocusComponentAsync(IgbFocusOptions)

Section titled "FocusComponentAsync(IgbFocusOptions)"

Inherited from: IgbDateTimeInputBase

Sets focus on the control.

[WCWidgetMemberName("Focus")]
public Task FocusComponentAsync(IgbFocusOptions options)

Parameters

  • options: IgbFocusOptions

Returns any

Inherited from: IgbDateTimeInputBase

[WCWidgetMemberName("Focus")]
public void FocusComponent(IgbFocusOptions options)

Parameters

  • options: IgbFocusOptions

Returns any

Inherited from: IgbDateTimeInputBase

Removes focus from the control.

[WCWidgetMemberName("Blur")]
public Task BlurComponentAsync()

Returns any

Inherited from: IgbDateTimeInputBase

[WCWidgetMemberName("Blur")]
public void BlurComponent()

Returns any

Inherited from: IgbDateTimeInputBase

public Task<bool> HasDatePartsAsync()

Returns any

Inherited from: IgbDateTimeInputBase

public bool HasDateParts()

Returns any

Inherited from: IgbDateTimeInputBase

public Task<bool> HasTimePartsAsync()

Returns any

Inherited from: IgbDateTimeInputBase

public bool HasTimeParts()

Returns any

SetSelectionRangeAsync(double, double, string)

Section titled "SetSelectionRangeAsync(double, double, string)"

Inherited from: IgbDateTimeInputBase

public Task SetSelectionRangeAsync(double start = -1, double end = -1, string direction = null)

Parameters

  • start: double
  • end: double
  • direction: string

Returns any

SetSelectionRange(double, double, string)

Section titled "SetSelectionRange(double, double, string)"

Inherited from: IgbDateTimeInputBase

public void SetSelectionRange(double start = -1, double end = -1, string direction = null)

Parameters

  • start: double
  • end: double
  • direction: string

Returns any

SetRangeTextAsync(string, double, double, string)

Section titled "SetRangeTextAsync(string, double, double, string)"

Inherited from: IgbDateTimeInputBase

public Task SetRangeTextAsync(string replacement, double start = -1, double end = -1, string selectMode = null)

Parameters

  • replacement: string
  • start: double
  • end: double
  • selectMode: string

Returns any

SetRangeText(string, double, double, string)

Section titled "SetRangeText(string, double, double, string)"

Inherited from: IgbDateTimeInputBase

public void SetRangeText(string replacement, double start = -1, double end = -1, string selectMode = null)

Parameters

  • replacement: string
  • start: double
  • end: double
  • selectMode: string

Returns any

Inherited from: IgbDateTimeInputBase

Checks for validity of the control and shows the browser message if it invalid.

public Task ReportValidityAsync()

Returns any

Inherited from: IgbDateTimeInputBase

public void ReportValidity()

Returns any

Inherited from: IgbDateTimeInputBase

Checks for validity of the control and emits the invalid event if it invalid.

public Task CheckValidityAsync()

Returns any

Inherited from: IgbDateTimeInputBase

public void CheckValidity()

Returns any

Inherited from: IgbDateTimeInputBase

Sets a custom validation message for the control. As long as message is not empty, the control is considered invalid.

public Task SetCustomValidityAsync(string message)

Parameters

  • message: string

Returns any

Inherited from: IgbDateTimeInputBase

public void SetCustomValidity(string message)

Parameters

  • message: string

Returns any

Inherited from: BaseRendererControl

Resolves the components event behavior if Auto is selected.

protected ControlEventBehavior ResolveEventBehavior()

Returns any

Inherited from: BaseRendererControl

protected string ToSpinal(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected virtual string TransformSimpleKey(string key)

Parameters

  • key: string

Returns any

Inherited from: BaseRendererControl

protected virtual bool IsTransformedEnumValue(string key)

Parameters

  • key: string

Returns any

TransformPotentialEnumValue(string, object)

Section titled "TransformPotentialEnumValue(string, object)"

Inherited from: BaseRendererControl

protected virtual object TransformPotentialEnumValue(string key, object value)

Parameters

  • key: string
  • value: object

Returns any

Inherited from: BaseRendererControl

protected virtual SequenceInfo BuildSequenceInfo(int startSequence)

Parameters

  • startSequence: int

Returns any

Inherited from: BaseRendererControl

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

  • builder: RenderTreeBuilder

Returns any

Inherited from: BaseRendererControl

protected Type TemplateContentType(string templateId)

Parameters

  • templateId: string

Returns any

Inherited from: BaseRendererControl

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

  • firstRender: bool

Returns any

Inherited from: BaseRendererControl

public Task EnsureReady()

Returns any

Inherited from: BaseRendererControl

protected void MarkPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Inherited from: BaseRendererControl

protected bool IsPropDirty(string propertyName)

Parameters

  • propertyName: string

Returns any

Serialize(SerializationContext, string)

Section titled "Serialize(SerializationContext, string)"

Inherited from: BaseRendererControl

public void Serialize(SerializationContext context, string propertyName = null)

Parameters

  • context: SerializationContext
  • propertyName: string

Returns any

Inherited from: BaseRendererControl

public string Serialize()

Returns any

InvokeMethod(string, object[], string[], ElementReference[])

Section titled "InvokeMethod(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected Task<object> InvokeMethod(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

InvokeMethodSync(string, object[], string[], ElementReference[])

Section titled "InvokeMethodSync(string, object[], string[], ElementReference[])"

Inherited from: BaseRendererControl

protected object InvokeMethodSync(string methodName, object[] arguments, string[] types, ElementReference[] nativeElements = null)

Parameters

  • methodName: string
  • arguments: object[]
  • types: string[]
  • nativeElements: ElementReference[]

Returns any

Inherited from: BaseRendererControl

Prevents data change notifications from be propagated to the component.

public void SuspendNotifications(object dataSource)

Parameters

  • dataSource: object

Returns any

Inherited from: BaseRendererControl

Resumes data change notifications.

public void ResumeNotifications(object dataSource, bool notify = true)

Parameters

  • dataSource: object
  • notify: bool

Returns any

NotifyInsertItem(object, int, object)

Section titled "NotifyInsertItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyInsertItem(object dataSource, int index, object refItem)

Parameters

  • dataSource: object
  • index: int
  • refItem: object

Returns any

NotifyRemoveItem(object, int, object)

Section titled "NotifyRemoveItem(object, int, object)"

Inherited from: BaseRendererControl

public void NotifyRemoveItem(object dataSource, int index, object oldItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object

Returns any

Inherited from: BaseRendererControl

public void NotifyClearItems(object dataSource)

Parameters

  • dataSource: object

Returns any

NotifySetItem(object, int, object, object)

Section titled "NotifySetItem(object, int, object, object)"

Inherited from: BaseRendererControl

public void NotifySetItem(object dataSource, int index, object oldItem, object newItem)

Parameters

  • dataSource: object
  • index: int
  • oldItem: object
  • newItem: object

Returns any

NotifyUpdateItem(object, int, object, bool)

Section titled "NotifyUpdateItem(object, int, object, bool)"

Inherited from: BaseRendererControl

public void NotifyUpdateItem(object dataSource, int index, object refItem, bool syncDataOnly = false)

Parameters

  • dataSource: object
  • index: int
  • refItem: object
  • syncDataOnly: bool

Returns any

Inherited from: BaseRendererControl

public void OnRefChanged(string refName, object refValue)

Parameters

  • refName: string
  • refValue: object

Returns any

Inherited from: BaseRendererControl

public void OnInvokeReturn(long invokeId, object returnValue)

Parameters

  • invokeId: long
  • returnValue: object

Returns any

Inherited from: BaseRendererControl

protected string Camelize(string value)

Parameters

  • value: string

Returns any

Inherited from: BaseRendererControl

protected string ToPascal(string value)

Parameters

  • value: string

Returns any

OnElementNameChanged(BaseRendererElement, string, string)

Section titled "OnElementNameChanged(BaseRendererElement, string, string)"

Inherited from: BaseRendererControl

protected void OnElementNameChanged(BaseRendererElement element, string oldName, string newName)

Parameters

  • element: BaseRendererElement
  • oldName: string
  • newName: string

Returns any

Inherited from: BaseRendererControl

protected virtual void Dispose(bool disposing)

Parameters

  • disposing: bool

Returns any

SetResourceStringAsync(string, string, string)

Section titled "SetResourceStringAsync(string, string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string id, string value)

Parameters

  • grouping: string
  • id: string
  • value: string

Returns any

SetResourceStringAsync(string, string)

Section titled "SetResourceStringAsync(string, string)"

Inherited from: BaseRendererControl

public Task<object> SetResourceStringAsync(string grouping, string json)

Parameters

  • grouping: string
  • json: string

Returns any

SetPropertyValue(object, PropertyInfo, JsonElement)

Section titled "SetPropertyValue(object, PropertyInfo, JsonElement)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, JsonElement jsonElement)

Parameters

  • item: object
  • property: PropertyInfo
  • jsonElement: JsonElement

Returns any

SetPropertyValue(object, PropertyInfo, object)

Section titled "SetPropertyValue(object, PropertyInfo, object)"

Inherited from: BaseRendererControl

protected void SetPropertyValue(object item, PropertyInfo property, object value)

Parameters

  • item: object
  • property: PropertyInfo
  • value: object

Returns any

Inherited from: BaseRendererControl

public void Dispose()

Returns any

public void Clear()

Returns any

Clears the input element of user input.

public Task ClearAsync()

Returns any

protected override void EnsureModulesLoaded()

Returns any

public override object FindByName(string name)

Parameters

  • name: string

Returns any

public DateTime? GetCurrentValue()

Returns any

public Task<DateTime?> GetCurrentValueAsync()

Returns any

protected override string ResolveDisplay()

Returns any

public void StepDown()

Returns any

public void StepDown(DatePart datePart)

Parameters

  • datePart: DatePart

Returns any

public void StepDown(DatePart? datePart = null, double delta = -1)

Parameters

  • datePart: DatePart?
  • delta: double

Returns any

public Task StepDownAsync()

Returns any

public Task StepDownAsync(DatePart datePart)

Parameters

  • datePart: DatePart

Returns any

public Task StepDownAsync(DatePart? datePart = null, double delta = -1)

Parameters

  • datePart: DatePart?
  • delta: double

Returns any

public void StepUp()

Returns any

public void StepUp(DatePart datePart)

Parameters

  • datePart: DatePart

Returns any

public void StepUp(DatePart? datePart = null, double delta = -1)

Parameters

  • datePart: DatePart?
  • delta: double

Returns any

public Task StepUpAsync()

Returns any

public Task StepUpAsync(DatePart datePart)

Parameters

  • datePart: DatePart

Returns any

public Task StepUpAsync(DatePart? datePart = null, double delta = -1)

Parameters

  • datePart: DatePart?
  • delta: double

Returns any

[Parameter]
public EventCallback<IgbVoidEventArgs> Blur { get; set; }
[Parameter]
public EventCallback<IgbComponentDateValueChangedEventArgs> Change { get; set; }
[Parameter]
public EventCallback<IgbVoidEventArgs> Focus { get; set; }
[Parameter]
public EventCallback<IgbComponentValueChangedEventArgs> InputOcurred { get; set; }
[Parameter]
public EventCallback<DateTime?> ValueChanged { get; set; }
[Parameter]
public string BlurScript { get; set; }
[Parameter]
public string ChangeScript { get; set; }
[Parameter]
public string FocusScript { get; set; }
[Parameter]
public string InputOcurredScript { get; set; }