Defines the fluent interface for configuring the TimePicker component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DateTimePickerBuilder : DatePickerBuilderBase<DateTimePicker, DateTimePickerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<DateTimePicker, DateTimePickerBuilder>DatePickerBuilderBase<DateTimePicker, DateTimePickerBuilder>DateTimePickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the TimePickerBuilder class.
public DateTimePickerBuilder(DateTimePicker component)
The component.
Methods
Specifies a template used to populate aria-label attribute.
public DateTimePickerBuilder ARIATemplate(string template)
The string template.
Returns: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 DateTimePickerBuilder ComponentType(string value)
The value for ComponentType
Returns:Specifies the navigation depth.
public DateTimePickerBuilder Depth(CalendarView depth)
The value that will specify the navigation depth.
Returns:Specifies the disabled dates in the DateTimePicker widget.
public DateTimePickerBuilder DisableDates(params DayOfWeek[] days)
The days that will be disabled in the Calendar.
Returns:Specifies the disabled dates in the DateTimePicker widget using a function.
public DateTimePickerBuilder DisableDates(string handler)
The JavaScript funcation that will be used to define the disabled cells in the Calendar.
Returns:If set, specifies the latest time the TimeView can show.
public DateTimePickerBuilder EndTime(DateTime date)
The value for StartTime
Returns:If set, specifies the latest time the TimeView can show.
public DateTimePickerBuilder EndTime(string date)
The value for StartTime
Returns:Sets a value controlling how the color is applied.
public DateTimePickerBuilder FillMode(FillMode value)
The value for FillMode
Returns:Enables/disables footer of the calendar popup.
public DateTimePickerBuilder Footer(bool footer)
The value that displays or hides the footer of the Calendar.
Returns:Footer template to be used for rendering the footer of the Calendar.
public DateTimePickerBuilder Footer(string footer)
The value that configures the content of the footer for the Calendar.
Returns:FooterId to be used for rendering the footer of the Calendar.
public DateTimePickerBuilder FooterId(string id)
The id value that will be used for rendering the footer of the Calendar.
Returns: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 DateTimePickerBuilder InputMode(string value)
The value that configures the "inputmode" attribute.
Returns:Specifies the interval between values in the popup list. When the componentType is set to modern, the interval is specified as an object of hours, minutes and seconds.
public DateTimePickerBuilder Interval(Action<IntervalSettingsBuilder> action)
The interval settings.
Returns:Sets the interval between hours.
public DateTimePickerBuilder Interval(int interval)
The interval between hours.
Returns:Sets the maximal date, which can be selected in DatePicker.
public DateTimePickerBuilder Max(string date)
The date value that will set the maximum value for selection.
Returns:Sets the minimal date, which can be selected in DatePicker.
public DateTimePickerBuilder Min(string date)
The date value that will set the minimal value for selection.
Returns:Configures the content of cells of the Calendar.
public DateTimePickerBuilder MonthTemplate(Action<MonthTemplateBuilder> monthTemplateAction)
The action method that will be used for rendering cells the Calendar.
Returns:Templates for the cells rendered in the "month" view.
public DateTimePickerBuilder MonthTemplate(string content)
The content that will be used for rendering cells the Calendar.
Returns:Templates for the cells rendered in the "month" view.
public DateTimePickerBuilder MonthTemplate<TModel>(TemplateBuilder<TModel> template)
MonthTemplateHandler to be used for rendering the cells of the Calendar.
public DateTimePickerBuilder MonthTemplateHandler(string template)
The JavaScript that will be used for rendering cells the Calendar.
Returns:MonthTemplateId to be used for rendering the cells of the Calendar.
public DateTimePickerBuilder MonthTemplateId(string id)
The id value that will be used for rendering cells the Calendar.
Returns:MonthTemplateView to be used for rendering the cells of the Calendar.
public DateTimePickerBuilder MonthTemplateView(MvcHtmlString template)
The Razor View that will be used for rendering cells the Calendar.
Returns: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.
public DateTimePickerBuilder Readonly(bool value)
The value for Readonly
Returns:Sets a value controlling the border radius.
public DateTimePickerBuilder Rounded(Rounded? value)
The value for Rounded
Returns:Sets the size of the component.
public DateTimePickerBuilder Size(ComponentSize? value)
The value for Size
Returns:Specifies the start view.
public DateTimePickerBuilder Start(CalendarView start)
The value that will specify the start view.
Returns:If set, specifies the earliset time the TimeView can show.
public DateTimePickerBuilder StartTime(DateTime date)
The value for StartTime
Returns:If set, specifies the earliset time the TimeView can show.
public DateTimePickerBuilder StartTime(string date)
The value for StartTime
Returns:Specifies the format, which is used to format the values in the time drop-down list.
public DateTimePickerBuilder TimeFormat(string timeFormat)
The value that will be used to format the predefined values in the time list.
Returns:If set to true, a week numbers will be shown on the Calendar.
public DateTimePickerBuilder WeekNumber(bool weekNumber)
The value that display or hide the week number of the Calendar.
Returns: