Sets or gets the time slots that are available for a time picker.
The enabledTimes
lets your site members choose from a set of
enabled time slots that you defined as available.
Setting the enabledTimes
property sets all the time slots
available to a timePicker
element.
Getting the enabledTimes
property returns the current
list of time slots available to a timePicker
element.
When setting and getting the enabled times, the time slot values are an array of TimeSlot
objects.
Each time slot object contains a startTime
and an endTime
.
You cannot modify the enabledTimes
array in-place. To add, change, or remove
individual time slots:
enabledTimes
property in a variable.enabledTimes
property with the variable's modified array.