setOptions

Changes the initial TimePicker configuration.

Value Behavior

When setOptions is called, the value resolution follows a priority order:

  • Explicit value in setOptions: If the options parameter contains a value property, this value takes precedence and updates the component's current value.
  • Initial value exists: If the options parameter does not contain a value property, and the component was initialized with a value, the component reverts to the initial value, discarding any user-selected or programmatically set value.
  • No initial value: If the options parameter does not contain a value property, and the component was initialized without a value, the component preserves the current value.

Parameters

options Object

The new configuration options.

Example

<input id="timepicker" />
<script>
$("#timepicker").kendoTimePicker({
    min: new Date(2001, 0, 1, 8, 0, 0),
    max: new Date(2013, 0, 1, 18, 0, 0)
});

var timepicker = $("#timepicker").data("kendoTimePicker");

timepicker.setOptions({
    min: new Date(2013, 0, 1, 11, 30, 0),
    max: new Date(2013, 0, 1, 16, 30, 0)
});
</script>
In this article
setOptions
Not finding the help you need?
Contact Support