This demo showcases the different available dates of doctors and their appointments on those days.
More Details...
| |
12:00 AM | | 1:00 AM | | 2:00 AM | | 3:00 AM | | 4:00 AM | | 5:00 AM | | 6:00 AM | | 7:00 AM | | 8:00 AM | | 9:00 AM | | 10:00 AM | | 11:00 AM | | 12:00 PM | | 1:00 PM | | 2:00 PM | | 3:00 PM | | 4:00 PM | | 5:00 PM | | 6:00 PM | | 7:00 PM | | 8:00 PM | | 9:00 PM | | 10:00 PM | | 11:00 PM | |
| Cardiac Catheterization 6:00 AM - 7:30 AM | Coronary angiogram 2:30 AM - 4:00 AM | Blood pressure 6:30 AM - 7:00 AM | Cardiac stress testing 4:30 AM - 5:00 AM | Neuromuscular 6:00 AM - 8:00 AM | Sleep disorders 6:30 AM - 8:30 AM | Radiculopathy 10:15 AM - 11:00 AM | Rheumatoid arthritis 8:10 AM - 9:10 AM | Growth abnormalities 8:30 AM - 10:00 AM | Torn ligaments 8:00 AM - 9:15 AM | Sprains and strains 8:30 AM - 10:00 AM | Tendon injuries 8:30 AM - 10:00 AM | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
|
Description
In this demo, different working days are assigned by passing the
workDays collection for each doctor to show their available dates. On each of their available dates, their daily available
time range is also depicted by mentioning the
startHour and
endHour for each doctor. These values needs to be provided along with the resource
dataSource by mapping the appropriate fields namely
workDaysField,
startHourField and
endHourField.
Here, we have customized the background cell color of the available times of each doctor using
renderCell event to denote that, only those timeslots are available for booking appointments. All other cells are simply read-only
and no appointments can be booked on it. Also, if the applicable timeslot already contains an appointment, then no
more appointments can be added to that cell which has been prevented by making use of the
isSlotAvailable function within the
actionBegin event checking for
eventCreate and eventChange request type. The resource header is customized by making use of the
resourceHeaderTemplate option.