close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2310

Table Of Contents

14.3.1 Usage

    <script src="dist/full/js/fragment-integration.js"></script>
    <script>
      document.addEventListener("DOMContentLoaded", () => {
        fragmentIntegration.render(
          "calista",
          "placement1",
          document.querySelector("#here"),
          ""
        );
      });
    </script>
    <div id="here"></div>

Example 14.14. Fragment Integration with a separate DOM Placeholder


    <script src="dist/full/js/fragment-integration.js"></script>
    <div data-cm-react-fragment='{"path":"calista","placement":"placement1", "url": "}'></div>

Example 14.15. Fragment Integration of DOM element with custom data attribute


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.