Pass a Fragment's Context to VDOM or Custom Web Components

When you use fragments with VDOM (based on JET’s Virtual DOM architecture) or custom web components, you need to allow the fragment to access its parent container's context. For example, you might have an oj-dyn-form (the VDOM variant of a dynamic form) that defines a form template in a fragment. To allow the fragment to access the layout context used to render the form template, you'll need to define the Bridge property on the fragment container.

The Bridge property is required within VDOM, particularly dynamic VDOM components that use fragments; it can also be used with custom web components.

To pass a fragment's context to a VDOM or custom web component:

  1. Open the page with the VDOM or custom web component that references a fragment.
  2. In Structure view, select the fragment used on the page.
  3. Click the All tab in the fragment container's Properties pane.
  4. In the Bridge property, enter [[vbBridge]].