1 Reply Latest reply on Oct 11, 2019 4:02 PM by Duncan Mills-Oracle

    oj.Context for Custom Web Component

    ZacD

      Is it possible to create an oj.Context on a custom web component without requiring the user of the component to add the data-oj-context to the component explicitly?  If I use oj.Context.getContext(context.element) during the initialization of my component, it is just returning the Page context, but I only care about the context of my component specifically.

        • 1. Re: oj.Context for Custom Web Component
          Duncan Mills-Oracle

          Generally getting the page context is what you actually want, but if you want to get the busy state of the component's view children then you could always add the data-oj-context to an outer element of the view and then grab the busy-context for that.  Frankly though I've never had a situation where just using the page rollup was not sufficient