DatePickerBuilder
Defines the fluent interface for configuring the DatePicker component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DatePickerBuilder : DatePickerBuilderBase<DatePicker, DatePickerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<DatePicker, DatePickerBuilder>DatePickerBuilderBase<DatePicker, DatePickerBuilder>DatePickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DatePickerBuilder class.
Methods
Specifies a template used to populate aria-label attribute.
public DatePickerBuilder ARIATemplate(string template)
The string template.
Returns:When enabled, the DatePicker will autofill the rest of the date to the current date when the component looses focus. For example, entering only the date, month or year portion of the date and blurring the component, the missing sections will be automatically completed. Requires a DateInput for editing the value.
When enabled, the DatePicker will autofill the rest of the date to the current date when the component looses focus. For example, entering only the date, month or year portion of the date and blurring the component, the missing sections will be automatically completed. Requires a DateInput for editing the value.
Specifies the component type of the widget. "classic" - Uses the standard rendering of the widget. or "modern" - Uses new rendering with a fresh and modern look and feel..
public DatePickerBuilder ComponentType(string value)
The value for ComponentType
Returns:Specifies the navigation depth.
Specifies the disabled dates in the DatePicker widget.
public DatePickerBuilder DisableDates(params DayOfWeek[] days)
Specifies the disabled dates handler in the DatePicker widget using a function.
Sets a value controlling how the color is applied.
public DatePickerBuilder FillMode(FillMode value)
The value for FillMode
Returns:Enables/disables footer of the calendar popup.
Footer template to be used for rendering the footer of the Calendar.
FooterId to be used for rendering the footer of the Calendar.
Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public DatePickerBuilder InputMode(string value)
The value that configures the "inputmode" attribute.
Returns:Sets the maximal date, which can be selected in DatePicker.
public DatePickerBuilder Max(string date)
The maximal date of the picker.
Returns:Sets the minimal date, which can be selected in DatePicker.
public DatePickerBuilder Min(string date)
The minimal date of the picker.
Returns:Configures the content of cells of the Calendar.
public DatePickerBuilder MonthTemplate(Action<MonthTemplateBuilder> monthTemplateAction)
Templates for the cells rendered in the "month" view.
The JavaScript function that returns the MonthTemplate to be used for rendering the cells of the Calendar.
MonthTemplateId to be used for rendering the cells of the Calendar.
MonthTemplateView to be used for rendering the cells of the Calendar.
public DatePickerBuilder MonthTemplateView(MvcHtmlString template)
If set to true, the widget will be readonly and will not allow user input. The widget is not readonly be default and allow user input.
If set to true, the widget will be readonly and will not allow user input. The widget is not readonly be default and allow user input.
Sets a value controlling the border radius.
public DatePickerBuilder Rounded(Rounded? value)
The value for Rounded
Returns:Sets the size of the component.
public DatePickerBuilder Size(ComponentSize? value)
The value for Size
Returns:Specifies the start view.
If set to true a week of the year will be shown on the left side of the calendar. It is possible to define a template in order to customize what will be displayed.