You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/integration-with-widgets.md
+16-18Lines changed: 16 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The integration primarily focuses on converting the Scheduler data into Booking
16
16
- Scheduler handles events (e.g., single or recurring).
17
17
- Booking generates available time slots from those events.
18
18
19
-
So what you actually need is to generate booking slots from the schedule (the [snippet below](#example) shows how to generate booking slots from the doctor's schedule using JSON data).
19
+
So what you actually need is to generate booking slots from the schedule (the [snippet below](#example) shows how to generate booking slots from the doctor's schedule by converting JSON data on server-side).
20
20
21
21
-**Recurring events limitation:**
22
22
- Booking supports only weekly recurring events (defined as INTERVAL=1;FREQ=WEEKLY in Scheduler).
@@ -42,14 +42,12 @@ The snippet below demonstrates how to integrate Booking with the Scheduler widge
42
42
43
43
Converting Scheduler events to Booking slots is the major part of integration and the rules for handling the events and converting them to slots are described in the [section below](#rules-for-converting-scheduler-events-to-booking-slots).
44
44
45
-
We also ensure that the timestamps are converted correctly. When global (UTC) timestamps are used, they need to be converted to local time before loading them into the system (**l2g** function in the example). Similarly, before saving the data back, the timestamps should be converted from local time to global (UTC) time (**g2l** function in the example).
## Rules for converting Scheduler events to Booking slots
51
49
52
-
We will show how to generate booking slots from the doctor's schedule using JSON data.
50
+
We will show how to generate booking slots from the doctor's schedule using JSON data. Data is converted on the server-side. The schedule for the next period is considered: from 2025-03-13 to 2027-03-13
53
51
54
52
**Rule 1. Single event slot creation.**
55
53
@@ -86,21 +84,21 @@ Booking slot:
86
84
87
85
**Rule 2. Recurring events.**
88
86
89
-
For recurring events, we use a weekly pattern. The start and end dates must be the same for each occurrence, as Booking only supports weekly recurring slots.
87
+
For recurring events, we use a weekly pattern. The start date and end date of each recurring event in Scheduler should be equal to Booking [start](/api/config/booking-start) and [end](/api/config/booking-end) dates, otherwise create placeholders for dates before and after the recurring event (see Rule 7).
90
88
91
89
Scheduler event (weekly on weekdays): the recurrence rule (rrule) specifies that the event repeats weekly on Monday, Tuesday, Wednesday, Thursday, and Friday.
- Merging events: The repeating event and single events are combined into one Booking rule.
197
-
- If the single event has priority, its specific dates (March 18th and 19th) are added to the repeating event's rule.
198
-
- If the single event needs to override the repeating one, it must not be added to the repeating event’s dates.
194
+
- Merging events: the recurring event and single events are combined into one Booking rule.
195
+
- If a single event has priority, its specific dates (March 18th and 19th) are added to the recurring event's rule. Please, refer to [Defining the slot rules](/guides/configuration/#defining-slot-rules)
**Rule 7. Events starting later than Booking start date.**
320
317
321
-
If a recurring event starts after the Booking start date (default is today), create rules with empty time intervals for the dates prior to the event's start date. This simulates the dates being "removed" from the recurrence.
318
+
If a recurring event starts after the Booking start date (default is today and in the example it's 2025-03-14), create rules with empty time intervals for the dates prior to the event's start date. This simulates the dates being "removed" from the recurrence.
Copy file name to clipboardExpand all lines: docs/news/whats_new.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Released on March 12, 2025
14
14
15
15
- Lazy rendering of cards via the [`renderType`](/api/config/booking-rendertype) property
16
16
- Ability to embed templates via the [`cardTemplate`](/api/config/booking-cardtemplate) and [`infoTemplate`](/api/config/booking-infotemplate) properties
17
-
-[Integration with frameworks](/category/backend-and-frameworks-integration/) and [DHTMLX Event Calendar](/guides/integration-with-widgets/#integration-with-dhtmlx-event-calendar)
17
+
-[Integration with frameworks](/category/backend-and-frameworks-integration/) and [DHTMLX Event Calendar](https://snippet.dhtmlx.com/c5eu8pdk)
0 commit comments