Skip to main content

Info about environmentally friendly delivery

Present information about environmentally friendly delivery with Posten and Bring in your e-commerce solution. A custom web component lets you present the information embedded on a page or in a modal window. This is all done through a script served by us and the custom HTML element as described below.

Implementation:

Include the script with type="module".

    <script type="module" src="https://developer.bring.com/assets/bring-env/main.js" defer></script>
  

Add the custom element bring-environmental-info.

    <bring-environmental-info></bring-environmental-info>
  

As modal window (optional):

To treat it as a modal window, add the data attribute modal="true" on the custom element.

    <bring-environmental-info modal="true"></bring-environmental-info>
  

For triggering the modal to open, add the data attribute data-bring-env-open on an element.

    <button data-bring-env-open>Open modal</button>