DateInput
Example
Razor
<kendo-dateinput>
</kendo-dateinput>
Attributes
Attribute | Type | Description |
---|---|---|
name | String | Sets the name of the component. |
for | ModelExpression | An expression to be evaluated against the current model. |
deferred | Boolean | Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method. |
is-in-client-template | Boolean | When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute. |
as-module | Boolean | |
auto-adjust | Boolean | 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. |
auto-correct-parts | Boolean | Sets a value that indicates whether to automatically correct the segment when out of range |
auto-switch-keys | String[] | 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. |
auto-switch-parts | Boolean | A value indicating whether to automatically move to the next segment after a valid value is provided for the current |
enable-mouse-wheel | Boolean | A value indicating whether the mouse scroll can be used to increase/decrease the segments values |
fill-mode | FillMode | Sets a value controlling how the color is applied. |
format | String | 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. |
has-client-component | Boolean | |
input-mode | String | 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. |
max | DateTime | Specifies the maximum date which can be entered in the input. |
min | DateTime | Specifies the minimum date that which be entered in the input. |
on-change | String | Fires when the selected date is changed |
rounded | Rounded | Sets a value controlling the border radius. |
sanitize-id | Boolean | |
script-attributes | IDictionary<String,Object> | |
size | ComponentSize | Sets the size of the component. |
two-digit-year-max | Double | The maximum year value that is considered part of the current century. |
value | Object | Specifies the selected date. |