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
import page from '@adobe/exc-app/page';
page.title = 'Experience Cloud';
// Show spinner while performing an async operation
page.spinner = true;
try {
await performOperation();
} finally {
page.spinner = false;
}
// Generate a shell URL that directly opens the specified solution URL
const shellUrl = page.generateShellUrl('/relative/path');
// Navigate to another solution
page.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 or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.