airport-one-embeddable-widgets 2.17.0 → 2.19.0
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 +4 -3
- package/dist/airport-one-embeddable-widgets.iife.js +28 -28
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ You can customize the behavior and appearance of the element by setting its attr
|
|
|
22
22
|
|
|
23
23
|
| Attribute | Type | Default | Description |
|
|
24
24
|
| --------------------- | ------ | ------- | ------------------------------------------- |
|
|
25
|
+
| subscribingAirport | string | null | The subscribing airport code |
|
|
25
26
|
| origin | string | null | The origin airport code |
|
|
26
27
|
| destination | string | null | The destination airport code |
|
|
27
28
|
| airlines | string | null | A comma-separated list of airline codes |
|
|
@@ -36,8 +37,8 @@ You can customize the behavior and appearance of the element by setting its attr
|
|
|
36
37
|
| departureAirportLabel | string | null | The label for the departure airport input |
|
|
37
38
|
| departureDateLabel | string | null | The label for the departure date input |
|
|
38
39
|
| returnDateLabel | string | null | The label for the return date input |
|
|
39
|
-
| consentAdvertising | string |
|
|
40
|
-
| consentAnalytics | string |
|
|
40
|
+
| consentAdvertising | string | true | Dynamically turn off/on consent for Advertising - by passing a "true" or "false" |
|
|
41
|
+
| consentAnalytics | string | true | Dynamically turn off/on consent for Analytics - by passing a "true" or "false" |
|
|
41
42
|
|
|
42
43
|
## Examples
|
|
43
44
|
|
|
@@ -233,4 +234,4 @@ function changeConsent(consentAdvertising, consentAnalytics) {
|
|
|
233
234
|
// Set user's analytics consent from CMP
|
|
234
235
|
flightWidget.setAttribute('consentAnalytics', 'true') // consentAnalytics param should be a string of "true" or "false"
|
|
235
236
|
}
|
|
236
|
-
```
|
|
237
|
+
```
|