Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal editor doc #77

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/pages/services/aem-cf-console-admin/api/modal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ This API is returned to the GuestServer and also shared with the modal that load

Modify the currently displaying modal. GuestUI frames running inside the modal may call this method to change their dimensions, or to change other parameters.

#### `modal.close(): Promise<void>`

Close the modal.

### Resizing

When `height` and/or `width` are set to `"auto"`, the modal will attempt to resize whenever the displayed page changes size. This is to make the content of the iframe behave, as much as possible, like they're part of the content flow of the host application.
Expand Down
4 changes: 0 additions & 4 deletions src/pages/services/aem-cf-editor/api/modal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ This API is returned to the GuestServer and also shared with the modal that load

Modify the currently displaying modal. GuestUI frames running inside the modal may call this method to change their dimensions, or to change other parameters.

#### `modal.close(): Promise<void>`

Close the modal.

### Resizing

When `height` and/or `width` are set to `"auto"`, the modal will attempt to resize whenever the displayed page changes size. This is to make the content of the iframe behave, as much as possible, like they're part of the content flow of the host application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ In cases where a UI Extension manages data or sends data to a remote service, th
```js
import { attach } from "@adobe/uix-guest";

const guestConnection = await attach({ id: "extension-id" });
const connection = await attach({ id: "extension-id" });
const state = await connection.host.editorState.get();
const token = await connection.sharedContext.get("token");
const model = await connection.host.field.getModel();
Expand Down
8 changes: 2 additions & 6 deletions src/pages/services/aem-universal-editor/api/modal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function ExtensionRegistration() {
label: 'Modal Dialog',
icon: 'PublishSchedule',
onClick: async () => {
console.log('Button has been pressed.');
url: "/index.html#/modal", // absolute or relative path
console.log('Button has been pressed.');
const url = "/index.html#/modal"; // absolute or relative path
guestConnection.host.modal.showUrl({
title: 'Modal Dialog: ',
url,
Expand Down Expand Up @@ -151,10 +151,6 @@ This API is returned to the GuestServer and also shared with the modal that load

Modify the currently displaying modal. GuestUI frames running inside the modal may call this method to change their dimensions, or to change other parameters.

#### `modal.close(): Promise<void>`

Close the modal.

### Resizing

When `height` and/or `width` are set to `"auto"`, the modal will attempt to resize whenever the displayed page changes size. This is to make the content of the iframe behave, as much as possible, like they're part of the content flow of the host application.
Expand Down
Loading