Address-Book Plugin

The Address Book plugin allows users to store and manage contacts efficiently, providing seamless access to previously saved information. It supports multiple instances, making it easy to organize contacts across different contexts or projects. The plugin enables quick reuse of contact data without redundancy, improving workflow efficiency and consistency.

Example

<!DOCTYPE html>
<html lang="en" translate="no">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>DAT</title>
    <script
      type="module"
      crossorigin
      src="https://plugins.wedat.eu/address-book/plugin.js"
    ></script>
    <link
      rel="stylesheet"
      crossorigin
      href="https://plugins.wedat.eu/address-book/plugin.css"
    />
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>

    <script>
      document.addEventListener('DOMContentLoaded', () => {
        window.ADDRESS_BOOK &&
          window.ADDRESS_BOOK.init({
            selector: '#root',
            subjectType: 'repairer',
            showList: true,
            credentials: {
              customerNumber: '3131411',
              user: 'ferrsimo',
              password: 'ferrsimo01'
            },
            onComplete: (values) => {
              alert(JSON.stringify(values, null, 4))
            }
          })
      })
    </script>
  </body>
</html>