Skip to content

Commit 641a7e2

Browse files
example: explicitly pass default context
for developers who apparantly don't have access to the documentation
1 parent aa51a60 commit 641a7e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/autocomplete.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
</style>
99
<link rel="stylesheet" href="https://api.postcode.nl/static/3.2.16.0/css/autocomplete-address.css">
1010
<script src="https://api.postcode.nl/static/3.2.16.0/js/PostcodeNl/AutocompleteAddress.min.js"></script>
11-
<script src="https://api.postcode.nl/static/3.2.16.0/js/PostcodeNl/AutocompleteAddress.js"></script>
1211
</head>
1312
<body>
1413
<form>
@@ -19,9 +18,10 @@
1918
<script>
2019
const inputElement = document.querySelector('.input-autocomplete'),
2120
autocomplete = new PostcodeNl.AutocompleteAddress(inputElement, {
22-
autocompleteUrl: 'index.php?p=internationalAutocomplete', // Required
23-
addressDetailsUrl: 'index.php?p=internationalGetDetails', // Required
24-
});
21+
context: 'nld',
22+
autocompleteUrl: 'index.php?p=internationalAutocomplete', // Required
23+
addressDetailsUrl: 'index.php?p=internationalGetDetails', // Required
24+
});
2525

2626
inputElement.addEventListener('autocomplete-select', function (e) {
2727
if ('Address' == e.detail.precision)

0 commit comments

Comments
 (0)