DateInputBuilder
Defines the fluent API for configuring the Kendo UI DateInput
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DateInputBuilder : MvvmWidgetBuilderBase<DateInput, DateInputBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<DateInput, DateInputBuilder>MvvmWidgetBuilderBase<DateInput, DateInputBuilder>DateInputBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DateInputBuilder class.
Methods
If this property is enabled and you have configured min and/or max values, and the user enters a value that falls out of that range, the value will automatically be set to either the minimum or maximum allowed value.
public DateInputBuilder AutoAdjust(bool value)
The value for AutoAdjust
Returns:Returns the current DateInputBuilder instance.
Sets a value that indicates whether to automatically correct the segment when out of range
public DateInputBuilder AutoCorrectParts(bool value)
The value for AutoCorrectParts
Returns:Returns the current DateInputBuilder instance.
A string array representing keys that when pressed will force a move to the next segment. By default the culture specific symbols that match / and : are used.
public DateInputBuilder AutoSwitchKeys(params string[] value)
The value for AutoSwitchKeys
Returns:Returns the current DateInputBuilder instance.
A value indicating whether to automatically move to the next segment after a valid value is provided for the current
public DateInputBuilder AutoSwitchParts()
Returns the current DateInputBuilder instance.
A value indicating whether to automatically move to the next segment after a valid value is provided for the current
public DateInputBuilder AutoSwitchParts(bool value)
The value for AutoSwitchParts
Returns:Returns the current DateInputBuilder instance.
A value indicating whether the mouse scroll can be used to increase/decrease the segments values
public DateInputBuilder EnableMouseWheel(bool value)
The value for EnableMouseWheel
Returns:Returns the current DateInputBuilder instance.
Configures the client-side events.
public DateInputBuilder Events(Action<DateInputEventBuilder> configurator)
The client events action.
Returns:Returns the current DateInputBuilder instance.
Sets a value controlling how the color is applied.
public DateInputBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current DateInputBuilder instance.
Specifies the format, which is used to format the value of the DateInput displayed in the input. The format also will be used to parse the input.
public DateInputBuilder Format(string value)
The value for Format
Returns:Returns the current DateInputBuilder instance.
Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.
public DateInputBuilder InputMode(string value)
The value for InputMode
Returns:Returns the current DateInputBuilder instance.
Adds a label before the dateinput. If the dateinput has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public DateInputBuilder Label(Action<DateInputLabelSettingsBuilder> configurator)
The DateInputLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of DateInputBuilder .
Adds a label before the dateinput. If the dateinput has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public DateInputBuilder Label(string label)
The label.
Returns:Returns the current instance of DateInputBuilder .
Specifies the maximum date which can be entered in the input.
public DateInputBuilder Max(DateTime? value)
The value for Max
Returns:A DateInputBuilder instance for method chaining.
Specifies the maximum date which can be entered in the input.
public DateInputBuilder Max(DateTime value)
The value for Max
Returns:Returns the current DateInputBuilder instance.
The messages that DateInput uses. Use it to customize or localize the placeholders of each date/time part.
public DateInputBuilder Messages(Action<DateInputMessagesSettingsBuilder> configurator)
The DateInputMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of DateInputBuilder .
Specifies the minimum date that which be entered in the input.
public DateInputBuilder Min(DateTime? value)
The value for Min
Returns:A DateInputBuilder instance for method chaining.
Specifies the minimum date that which be entered in the input.
public DateInputBuilder Min(DateTime value)
The value for Min
Returns:Returns the current DateInputBuilder instance.
Sets a value controlling the border radius.
public DateInputBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current DateInputBuilder instance.
Sets the size of the component.
public DateInputBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current DateInputBuilder instance.
An object with the different steps for incrementing/decrementing the various segments
public DateInputBuilder Steps(Action<DateInputStepsSettingsBuilder> configurator)
The DateInputStepsSettingsBuilder for the steps setting.
Returns:Returns the current instance of DateInputBuilder .
The maximum year value that is considered part of the current century.
public DateInputBuilder TwoDigitYearMax(double value)
The value for TwoDigitYearMax
Returns:Returns the current DateInputBuilder instance.
Specifies the selected date.
public DateInputBuilder Value(DateOnly? value)
The value for Value
Returns:Specifies the selected date.
public DateInputBuilder Value(DateOnly value)
The value for Value
Returns:Specifies the selected date.
public DateInputBuilder Value(DateTime? value)
The value for the selected date.
Returns:A DateInputBuilder instance for method chaining.
Specifies the selected date.
public DateInputBuilder Value(DateTime value)
The value for Value
Returns:Returns the current DateInputBuilder instance.
Specifies the selected time.
public DateInputBuilder Value(TimeOnly? value)
The value for Value
Returns:Specifies the selected time.
public DateInputBuilder Value(TimeOnly value)
The value for Value
Returns: