Page configuration
The configuration of each page can be expressed through a plain HTML file, or with a JSON object that must adhere to the PageBuilder configuration standard.
You can use the HTML configuration to define the structure of your page, but to be correctly managed by orchy you must insert two attributes where needed:
orchy-micro-frontend: this attribute defines that theDOMelement is a Micro Frontend that must be managed byorchy. This will be used to search for the elements in whichorchywill inject themicroFrontendProperties;orchy-element: this attribute defines that theDOMelement needs theorchy's eventBus. This will be used to search for the elements in whichorchywill inject theeventBus.
Here is a full example of the configuration made with HTML:
<div style="display: flex; flex-direction: row">
<script type="module" src="/communication-react-mfe/index.js"></script>
<communication-react-mfe orchy-micro-frontend></communication-react-mfe>
<iframe src="/communication-svelte-iframe"></iframe>
</div>