Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

getRenderingMode()

Updated on July 20, 2021

Obtains the mode that the Constellation UI is rendered in.

Constellation UI can be rendered in the following modes:

  • When Constellation UI is rendered as a full portal, the rendering mode is FULL_PORTAL.
  • When Constellation UI is rendered through Web embed channels into web pages, the rendering mode is EMBED.
  • When Constellation UI is rendered within legacy sections or harnesses, the rendering mode is HYBRID.
  • When Constellation UI is rendered during authoring, the rendering mode is PREVIEW.

Returns

The rendering mode as a string.

Parameters

This API does not have parameters.

Usage example

In this example, the API returns the mode that the Constellation UI can be rendered in.

const renderingMode = PCore.getEnvironmentInfo().getRenderingMode();

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us