TimePickerBuilder
Defines the fluent API for configuring the Kendo UI TimePicker
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class TimePickerBuilder : MvvmWidgetBuilderBase<TimePicker, TimePickerBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<TimePicker, TimePickerBuilder>MvvmWidgetBuilderBase<TimePicker, TimePickerBuilder>TimePickerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the TimePickerBuilder class.
Methods
Specifies the adaptive rendering of the component.
public TimePickerBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:Returns the current TimePickerBuilder instance.
Allows customization of the subtitle's text in the adaptive view of the component.
public TimePickerBuilder AdaptiveSubtitle(string value)
The value for AdaptiveSubtitle
Returns:Returns the current TimePickerBuilder instance.
Allows customization of the title's text in the adaptive view of the component.
public TimePickerBuilder AdaptiveTitle(string value)
The value for AdaptiveTitle
Returns:Returns the current TimePickerBuilder instance.
Configures the animation effects of the widget.
public TimePickerBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action which configures the animation effects.
Returns:Returns the current TimePickerBuilder instance.
Use to enable or disable animation of the popup element.
public TimePickerBuilder Animation(bool enable)
The boolean value.
Returns:Returns the current TimePickerBuilder instance.
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. This property has effect only when the dateInput of the component is enabled.
public TimePickerBuilder AutoAdjust(bool value)
The value for AutoAdjust
Returns:Returns the current TimePickerBuilder instance.
Sets a value that indicates whether to automatically correct the segment when out of range. In order to work, dateInput prop should be set to true.
public TimePickerBuilder AutoCorrectParts(bool value)
The value for AutoCorrectParts
Returns:Returns the current TimePickerBuilder instance.
Binds the TimePicker to a list of DateTime objects.
public TimePickerBuilder BindTo(IList<DateTime> dates)
The list of DateTime objects.
Returns:Returns the current TimePickerBuilder instance.
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 TimePickerBuilder ComponentType(string value)
The value for ComponentType
Returns:Returns the current TimePickerBuilder instance.
Specifies the culture info used by the widget.
public TimePickerBuilder Culture(string value)
The value for Culture
Returns:Returns the current TimePickerBuilder instance.
Specifies if the TimePicker will use DateInput for editing value
Specifies if the TimePicker will use DateInput for editing value
public TimePickerBuilder DateInput(bool value)
The value for DateInput
Returns:Returns the current TimePickerBuilder instance.
Specifies a list of dates, which are shown in the time drop-down list. If not set, the TimePicker will auto-generate the available times.
public TimePickerBuilder Dates(params DateTime[] value)
The value for Dates
Returns:Returns the current TimePickerBuilder instance.
Enables or disables the picker.
public TimePickerBuilder Enable(bool value)
The value which will enable/disable the picker.
Returns:Returns the current TimePickerBuilder instance.
Configures the client-side events.
public TimePickerBuilder Events(Action<TimePickerEventBuilder> configurator)
The client events action.
Returns:Returns the current TimePickerBuilder instance.
Sets a value controlling how the color is applied.
public TimePickerBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current TimePickerBuilder instance.
Specifies a time that will be focused inside the popup when opened.
public TimePickerBuilder FocusTime(DateTime value)
The value for FocusTime
Returns:Returns the current TimePickerBuilder instance.
Specifies the format, which is used to format the value of the TimePicker displayed in the input. The format also will be used to parse the input.For more information on date and time formats please refer to Date Formatting.
public TimePickerBuilder Format(string value)
The value for Format
Returns:Returns the current TimePickerBuilder 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 TimePickerBuilder InputMode(string value)
The value for InputMode
Returns:Returns the current TimePickerBuilder instance.
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 TimePickerBuilder Interval(Action<IntervalSettingsBuilder> action)
The interval settings.
Returns:Returns the current TimePickerBuilder instance.
Specifies the interval between values in the popup list. When the componentType is set to classic, the interval is specified in minutes (numeric values). or When the componentType is set to modern, the interval is specified as an object of hours, minutes and seconds..
public TimePickerBuilder Interval(int value)
The value for Interval
Returns:Returns the current TimePickerBuilder instance.
Adds a label before the timepicker. If the timepicker 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 TimePickerBuilder Label(Action<TimePickerLabelSettingsBuilder> configurator)
The TimePickerLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of TimePickerBuilder .
Adds a label before the timepicker. If the timepicker 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 TimePickerBuilder Label(string label)
The label.
Returns:Returns the current instance of TimePickerBuilder .
Specifies the end value in the popup list.
public TimePickerBuilder Max(DateTime value)
The value for Max
Returns:Returns the current TimePickerBuilder instance.
Sets the maximum time, which can be selected in timepicker
public TimePickerBuilder Max(string value)
The Maximum time.
Returns:Returns the current TimePickerBuilder instance.
Sets the maximum time, which can be selected in timepicker
public TimePickerBuilder Max(TimeSpan value)
The maximum time.
Returns:Returns the current TimePickerBuilder instance.
Allows localization of the strings that are used in the widget.
public TimePickerBuilder Messages(Action<TimePickerMessagesSettingsBuilder> configurator)
The TimePickerMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of TimePickerBuilder .
Specifies the start value in the popup list.
public TimePickerBuilder Min(DateTime value)
The value for Min
Returns:Returns the current TimePickerBuilder instance.
Sets the minimum time, which can be selected in timepicker
public TimePickerBuilder Min(string value)
The minimum time.
Returns:Returns the current TimePickerBuilder instance.
Sets the minimum time, which can be selected in timepicker
public TimePickerBuilder Min(TimeSpan value)
The minumum time.
Returns:Returns the current TimePickerBuilder instance.
Specifies the formats, which are used to parse the value set with the value method or by direct input. If not set the value of the options.format will be used. Note that value of the format option is always used.
public TimePickerBuilder ParseFormats(params string[] value)
The value for ParseFormats
Returns:Returns the current TimePickerBuilder instance.
The options that will be used for the popup initialization. For more details about the available options refer to Popup documentation.
public TimePickerBuilder Popup(Action<TimePickerPopupSettingsBuilder> configurator)
The TimePickerPopupSettingsBuilder for the popup setting.
Returns:Returns the current instance of TimePickerBuilder .
Sets a value controlling the border radius.
public TimePickerBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current TimePickerBuilder instance.
Sets the size of the component.
public TimePickerBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current TimePickerBuilder instance.
Sets the value of the picker input
public TimePickerBuilder Value(DateTime? date)
The value of the TimePicker.
Returns:Returns the current TimePickerBuilder instance.
Specifies the selected time.
public TimePickerBuilder Value(DateTime value)
The value for Value
Returns:Returns the current TimePickerBuilder instance.
Sets the value of the picker input
public TimePickerBuilder Value(string date)
The value of the TimePicker.
Returns:Returns the current TimePickerBuilder instance.
Sets the value of the timepicker input
public TimePickerBuilder Value(TimeOnly? value)
The time value.
Returns:Returns the current TimePickerBuilder instance.
Sets the value of the timepicker input
public TimePickerBuilder Value(TimeOnly value)
The time value.
Returns:Returns the current TimePickerBuilder instance.
Sets the value of the timepicker input
public TimePickerBuilder Value(TimeSpan? time)
The minumum time.
Returns:Returns the current TimePickerBuilder instance.