TelerikDateInput<T>
A component that lets you enter and edit dates with formatting, validation, and keyboard navigation. Supports min/max, placeholders and format placeholders, debounce input, auto-switch/correct parts, two-digit year handling, clear button, read-only, and theming (size, rounded, fill mode).
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Type Parameters:
T
Syntax:
public class TelerikDateInput<T> : TelerikInputBase<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikInputBase<T>TelerikDateInput<T>
Implements:
Inherited Members
Constructors
public TelerikDateInput()
Fields
Steps
DateInputSteps
public DateInputSteps Steps
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
Moves focus to the component.
Properties
Specifies if a caret can be displayed during input (when possible).
[Parameter]
public bool AllowCaretMode { get; set; }
[Accessibility] Specifies the autocomplete attribute of the component.
[Parameter]
public string AutoComplete { get; set; }
Specifies if date parts will be auto corrected.
[Parameter]
public bool AutoCorrectParts { get; set; }
Specifies which keys should switch date parts.
[Parameter]
public List<object> AutoSwitchKeys { get; set; }
Specifies if date parts will be automatically switched when completed.
[Parameter]
public bool AutoSwitchParts { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
Gets or sets the description used for the data-smart-paste attribute.
[Parameter]
public string DataSmartPasteDescriptionAttribute { get; set; }
Time in ms between the last typed symbol and the updating of the value. Default is 150ms.
[Parameter]
public int DebounceDelay { get; set; }
Specifies the fill mode of the date input.
[Parameter]
public string FillMode { get; set; }
Specifies the format of the DateInput.
[Parameter]
public string Format { get; set; }
Sets the maximum allowed date of the DateInput.
[Parameter]
public DateTime Max { get; set; }
Sets the minimum allowed date of the DateInput.
[Parameter]
public DateTime Min { get; set; }
Specifies the placeholder attribute of the component.
[Parameter]
public string Placeholder { get; set; }
[Accessibility] The parameter is used to specify if the input field should be read-only.
When set to true, the input becomes non-editable.
[Parameter]
public bool ReadOnly { get; set; }
Specifies the roundness of the date input.
[Parameter]
public string Rounded { get; set; }
Specifies if the clear button will be displayed.
[Parameter]
public bool ShowClearButton { get; set; }
Specifies the maximum year to assume to be from the current century when typing two-digit year value. The default value is 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
[Parameter]
public int TwoDigitYearMax { get; set; }