Relazione Plugin

Plugin options interface

interface PluginOptions {
  selector?: string
}

Example

<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- load plugin styles -->
    <link
      href="https://plugins.wedat.eu/relazione/plugin.css"
      rel="stylesheet"
    />
  </head>
  <body>
    <!-- element to which plugin will be rendered -->
    <div class="plugin"></div>

    <!-- load plugin JS synchronously -->
    <script src="https://plugins.wedat.eu/relazione/plugin.js"></script>

    <!-- init plugin options in your JS file or inline JS like this -->
    <script>
      window.RELAZIONE_API.init({
        selector: '.plugin'
      })
    </script>
  </body>
</html>