DateInputBuilder
Defines the fluent API for configuring the Kendo UI DateInput
Properties
WriteAction - Func
Methods
Max(System.Nullable)
Specifies the maximum date which can be entered in the input.
Parameters
value - System.Nullable<DateTime>
The value for Max
Min(System.Nullable)
Specifies the minimum date that which be entered in the input.
Parameters
value - System.Nullable<DateTime>
The value for Min
Value(System.Nullable)
Specifies the selected date.
Parameters
value - System.Nullable<DateTime>
The value for Value
Format(System.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.
Parameters
value - System.String
The value for Format
Label(System.Action)
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.
Parameters
configurator - System.Action<DateInputLabelSettingsBuilder>
The configurator for the label setting.
Max(System.DateTime)
Specifies the maximum date which can be entered in the input.
Parameters
value - System.DateTime
The value for Max
Min(System.DateTime)
Specifies the minimum date that which be entered in the input.
Parameters
value - System.DateTime
The value for Min
Value(System.DateTime)
Specifies the selected date.
Parameters
value - System.DateTime
The value for Value
Messages(System.Action)
The messages that DateInput uses. Use it to customize or localize the placeholders of each date/time part.
Parameters
configurator - System.Action<DateInputMessagesSettingsBuilder>
The configurator for the messages setting.
Size(Kendo.Mvc.UI.ComponentSize)
Sets the size of the component.
Parameters
value - ComponentSize
The value for Size
Rounded(Kendo.Mvc.UI.Rounded)
Sets a value controlling the border radius.
Parameters
value - Rounded
The value for Rounded
FillMode(Kendo.Mvc.UI.FillMode)
Sets a value controlling how the color is applied.
Parameters
value - FillMode
The value for FillMode
Events(System.Action)
Configures the client-side events.
Parameters
configurator - System.Action<DateInputEventBuilder>
The client events action.
Example
@(Html.Kendo().DateInput()
.Name("DateInput")
.Events(events => events
.Change("onChange")
)
)
ToComponent()
Returns the internal view component.
Expression(System.String)
Sets the name of the component.
Parameters
modelExpression - System.String
Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)
Sets the name of the component.
Parameters
modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Name(System.String)
Sets the name of the component.
Parameters
componentName - System.String
The name.
Deferred(System.Boolean)
Suppress initialization script rendering. Note that this options should be used in conjunction with
Parameters
deferred - System.Boolean
HtmlAttributes(System.Object)
Sets the HTML attributes.
Parameters
attributes - System.Object
The HTML attributes.
HtmlAttributes(System.Collections.Generic.IDictionary)
Sets the HTML attributes.
Parameters
attributes - System.Collections.Generic.IDictionary<String,Object>
The HTML attributes.
Render()
Renders the component in place.
ToHtmlString()
WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)
Parameters
writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder
ToClientTemplate()
AsChildComponent()
Configures the widget as a child component.