Edit in GitHubLog an issue

External module: page

APIs that let solutions interact with the main page and personalize it, e.g. setting the title, favicon, refreshing the solution iframe, etc.

Import:

Copied to your clipboard
import page from '@adobe/exc-app/page';

Default export:

PageApi

Usage:

Copied to your clipboard
1import page from '@adobe/exc-app/page';
2
3page.title = 'Experience Cloud';
4
5// Show spinner while performing an async operation
6page.spinner = true;
7try {
8 await performOperation();
9} finally {
10 page.spinner = false;
11}
12
13// Generate a shell URL that directly opens the specified solution URL
14const shellUrl = page.generateShellUrl('/relative/path');
15
16// Navigate to another solution
17page.shellRedirect('/target');

Index#

Interfaces#

Type aliases#

Type aliases#

LocationLike#

Ƭ LocationLike: ObjectWithHref | ObjectWithPath

Defines the location-like object for which to get the shell URL. You can either specify a path or an absolute URL.

Example:

{path: '/abc'} or {href: 'https://example.com/abc'}

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.