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 clipboardimport page from '@adobe/exc-app/page';
Default export:
Usage:
Copied to your clipboardimport page from '@adobe/exc-app/page';page.title = 'Experience Cloud';// Show spinner while performing an async operationpage.spinner = true;try {await performOperation();} finally {page.spinner = false;}// Generate a shell URL that directly opens the specified solution URLconst shellUrl = page.generateShellUrl('/relative/path');// Navigate to another solutionpage.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'}