h5p-theme-picker 0.0.2 → 0.0.3
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -233,7 +233,7 @@ The values that you receive will look like:
|
|
|
233
233
|
</script>
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
### Listen to `change` event
|
|
236
|
+
### Listen to `theme-change` event
|
|
237
237
|
```JavaScript
|
|
238
238
|
<script type="module">
|
|
239
239
|
const picker = document.querySelector('h5p-theme-picker');
|
|
@@ -241,7 +241,7 @@ The values that you receive will look like:
|
|
|
241
241
|
* Or, if you constructed it yourself, e.g.
|
|
242
242
|
* const picker = new H5PThemePicker({});
|
|
243
243
|
*/
|
|
244
|
-
picker.addEventListener('change', (event) => {
|
|
244
|
+
picker.addEventListener('theme-change', (event) => {
|
|
245
245
|
console.log(event.detail);
|
|
246
246
|
});
|
|
247
247
|
</script>
|