enabledTimes


enabledTimesArray<TimeSlot>

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:

  1. Store the value of the enabledTimes property in a variable.
  2. Make changes to the variable's array of enabled time slots.
  3. Reset the enabledTimes property with the variable's modified array.
Did this help?