@timum/booking 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/build/timum-booking.js +5610 -5602
- package/build/timum-booking.umd.cjs +64 -64
- package/examples/docuExample.htm +113 -0
- package/package.json +1 -1
- package/examples/group-bookings.htm +0 -16
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Add the following code to your webpage:
|
|
|
29
29
|
```html
|
|
30
30
|
<div id="bookingjs" style="margin: 32px"></div>
|
|
31
31
|
<script type="module">
|
|
32
|
-
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.
|
|
32
|
+
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.7.1/build/timum-booking.js';
|
|
33
33
|
|
|
34
34
|
timum.init({ ref: 'booking-widget-demo-resource@timum' });
|
|
35
35
|
</script>
|
|
@@ -44,7 +44,7 @@ Alternatively, you can add `ref` to your url as a parameter. This allows you to
|
|
|
44
44
|
```html
|
|
45
45
|
<div id="bookingjs" style="margin: 32px"></div>
|
|
46
46
|
<script type="module">
|
|
47
|
-
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.
|
|
47
|
+
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.7.1/build/timum-booking.js';
|
|
48
48
|
|
|
49
49
|
timum.init(); //<- no need for the reference here
|
|
50
50
|
</script>
|
|
@@ -507,7 +507,7 @@ This is the base configuration. As it is it uses the standard field configuratio
|
|
|
507
507
|
```html
|
|
508
508
|
<div id="bookingjs" style="margin: 32px"></div>
|
|
509
509
|
<script type="module">
|
|
510
|
-
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.
|
|
510
|
+
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.7.1/build/timum-booking.js';
|
|
511
511
|
|
|
512
512
|
timum.init({ ref: 'booking-widget-demo-resource@timum' });
|
|
513
513
|
</script>
|
|
@@ -518,7 +518,7 @@ Let's add the necessary changes:
|
|
|
518
518
|
```html
|
|
519
519
|
<div id="bookingjs" style="margin: 32px"></div>
|
|
520
520
|
<script type="module">
|
|
521
|
-
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.
|
|
521
|
+
import * as timum from 'https://cdn.jsdelivr.net/npm/@timum/booking@0.7.1/build/timum-booking.js';
|
|
522
522
|
|
|
523
523
|
timum.init(
|
|
524
524
|
{
|
|
@@ -608,6 +608,13 @@ Let's add the necessary changes:
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
+
|
|
612
|
+
// the following callback consumes the customers input, allowing you to act on the entered gender value.
|
|
613
|
+
callback: {
|
|
614
|
+
createBookingStarted: ({data}) => {
|
|
615
|
+
console.log(data.gender);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
611
618
|
});
|
|
612
619
|
</script>
|
|
613
620
|
```
|