@etchteam/recycling-locator
v1.38.2
Published
Find places to recycle, refill or reuse items.
Downloads
1,345
Keywords
Readme
Recycling Locator
Welsh language support
Use the locale
attribute to set the language. cy
is currently the only supported language code.
<recycling-locator locale="cy"></recycling-locator>
Prefilled location
Provide the postcode
attribute to skip initial location entry.
<recycling-locator postcode="AB123CD"></recycling-locator>
Listening for when the locator has loaded
The <recycling-locator>
will dispatch a custom "ready" event when the UI has rendered.
document
.querySelector('recycling-locator')
.addEventListener('ready', () => {
console.info('Ready to recycle');
});
Contributing
Looking to contribute to the code? A good starting point is the contributing docs.