(Update with the copy of version: draft) |
(Update with the copy of version: draft) |
||
Line 8: | Line 8: | ||
showAvailability: true, | showAvailability: true, | ||
numberOfDays: 5, | numberOfDays: 5, | ||
− | + | hideUnavailableTimeSlots: false | |
+ | |||
calenderHours: { | calenderHours: { | ||
interval: 10, | interval: 10, | ||
+ | allDay: { | ||
− | |||
− | |||
− | |||
openTime: '09:00', | openTime: '09:00', | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
closeTime: '23:59' | closeTime: '23:59' | ||
} | } | ||
Line 45: | Line 30: | ||
! Default | ! Default | ||
! Required | ! Required | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| showAvailability | | showAvailability | ||
Line 64: | Line 43: | ||
| n/a | | n/a | ||
|- | |- | ||
− | | | + | | timeFormat |
− | | number | + | | number/string |
− | | | + | | This sets the time format for the timestamps in this widget. It can be 12 or 24. |
− | | | + | | 12 |
| n/a | | n/a | ||
|- | |- | ||
− | | | + | | hideUnavailableTimeSlots |
| boolean | | boolean | ||
− | | | + | | Show/hide the unavailable callback time slots. |
− | | | + | | false |
| n/a | | n/a | ||
|- | |- | ||
− | | calenderHours. | + | | calenderHours.interval |
| number | | number | ||
− | | | + | | The time interval between each consecutive timeslot displayed on calendar. |
− | + | | 15 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
| n/a | | n/a | ||
|- | |- | ||
− | | calenderHours. | + | | calenderHours.allDay.openTime |
| number | | number | ||
− | | | + | | Opening time in 'HH:MM' 24 Hr format. |
| 17:00 | | 17:00 | ||
| n/a | | n/a | ||
|- | |- | ||
− | | calenderHours. | + | | calenderHours.allDay.closeTime |
| number | | number | ||
− | | | + | | Closing time in 'HH:MM' 24 Hr format. |
| 23:59 | | 23:59 | ||
| n/a | | n/a |
Revision as of 22:09, May 11, 2018
Configuration
Description
Calendar share the configuration namespace '_genesys.widgets.calendar'. Calendar has UI options.
Example
window._genesys.widgets.calendar = { showAvailability: true, numberOfDays: 5, hideUnavailableTimeSlots: false calenderHours: { interval: 10, allDay: { openTime: '09:00', closeTime: '23:59' } } };
Options
Name | Type | Description | Default | Required |
---|---|---|---|---|
showAvailability | boolean | Enable/disable calendar to update the timeslots based on the callback availability. The unavailable timeslots are greyed out. | true | n/a |
numberOfDays | number | The number of days to display on calendar starting today. | 5 | n/a |
timeFormat | number/string | This sets the time format for the timestamps in this widget. It can be 12 or 24. | 12 | n/a |
hideUnavailableTimeSlots | boolean | Show/hide the unavailable callback time slots. | false | n/a |
calenderHours.interval | number | The time interval between each consecutive timeslot displayed on calendar. | 15 | n/a |
calenderHours.allDay.openTime | number | Opening time in 'HH:MM' 24 Hr format. | 17:00 | n/a |
calenderHours.allDay.closeTime | number | Closing time in 'HH:MM' 24 Hr format. | 23:59 | n/a |
Comments or questions about this documentation? Contact us for support!