Skip to content

Salesforce

Salesforce

How to install it

  1. Set the trusted URLs in Security & Privacy > Content Security Policy (CSP) and adding to the Trusted Sites for Scripts the necessary https://zds.zurich.com URLs.

  2. Add the imports to the <head> of the documents in the Advanced > Head markup configuration:

    html
    <link rel="stylesheet" href="https://zds.zurich.com/@zurich/web-components/styles.css" />
    <script type="module" src="https://zds.zurich.com/@zurich/web-components/index.js"></script>

    We can specify a version:

    html
    <link rel="stylesheet" href="https://zds.zurich.com/1.0.0/@zurich/web-components/styles.css" />
    <script type="module" src="https://zds.zurich.com/1.0.0/@zurich/web-components/index.js"></script>
  3. Add the https://zds.zurich.com necessary URLs into the DevAutopages Security > Trusted URLs list for the application.

  4. Use the lwc:external in the component

    html
    <template>
      <z-button config="positive" lwc:external>Button</z-button>
    </template>