Skip to content

Commit 2ea6324

Browse files
committed
Review
1 parent 83315e0 commit 2ea6324

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/packaging-your-extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ After completing development on your extension, you can package it into an add-o
1010

1111
To package your extension, follow the steps below:
1212

13-
1. Make sure the setting for enabling extension development is checked in the Preferences form. Alternatively, you can start Studio Pro with the `--enable-extension-development` command-line option.
13+
1. Make sure you have enabled the [Extension Development](/refguide/preferences-dialog/#extension-development) setting in your app's Preferences. Alternatively, you can start Studio Pro with the `--enable-extension-development` command-line option.
1414
2. In your Studio Pro app, create a new module and include your development extension.
1515
3. Give the module a name.
1616
4. Open the module's settings and in the **Export** tab, choose **Add-on module**.

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/get-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Extensions can be built on any operating system, as the underlying framework is
2424
{{% /alert %}}
2525

2626
{{% alert color="info" %}}
27-
Extension development is only possible enabling the setting in `Extension Development` under `Advanced` in the Studio Pro preferences form, or by starting Studio Pro using the `--enable-extension-development` feature flag.
27+
Extension development is only possible by enabling the [Extension Development](/refguide/preferences-dialog/#extension-development) setting in your app's Preferences, or by starting Studio Pro with the `--enable-extension-development` feature flag.
2828
{{% /alert %}}
2929

3030
## Creating Your First Extension
@@ -75,14 +75,14 @@ Before you begin, your extension will have to get an instance of the Studio Pro
7575

7676
In the source code, you should see the following:
7777

78-
1. We get an instance of the Studio Pro API by calling `getStudioProApi`.
78+
1. You get an instance of the Studio Pro API by calling `getStudioProApi`.
7979

8080
```typescript
8181
export const component: IComponent = {
8282
async loaded(componentContext) {
8383
const studioPro = getStudioProApi(componentContext);
8484

85-
2. We add a menu that opens a tab:
85+
2. A menu is added that opens a tab:
8686

8787
```typescript
8888
await studioPro.ui.extensionsMenu.add({
@@ -109,7 +109,7 @@ In the source code, you should see the following:
109109
});
110110
```
111111

112-
3. If you navigate to `build-extension.mjs`, you can choose the directory to which the extension will be installed to after being built by changing line 6:
112+
3. If you navigate to `build-extension.mjs`, you can choose the directory where the extension will be installed to after being built by changing line 6:
113113

114114
```typescript
115115
const appDir = "C:\\TestApps\\AppTestExtensions"

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/app-explorer-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This how-to describes how to interact with the App Explorer in Studio Pro. In th
1212

1313
Before starting this how-to, make sure you have completed the following prerequisites:
1414

15-
* Read up on how menus work in the Extensibility API [here](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu/)
15+
* Review [how menus work](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu/) in the Web Extensibility API
1616
* This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Complete that how-to before starting this one.
1717

1818
## Creating a Context Menu
@@ -21,7 +21,7 @@ Before starting this how-to, make sure you have completed the following prerequi
2121
Use the full name of the document type to specify which type of document a menu should belong to (for example, `Microflows$Microflow` for microflows or `Pages$Page` for pages). For more information about these document type names, see [Access a Mendix Model Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/model-api/).
2222
{{% /alert %}}
2323

24-
The code below uses the `appExplorer` API's `addContextMenu` method to add the menu to all `Microflow` document nodes. When this menu is clicked, the clicked document's ID will be sent as an argument through the `DocumentContext` argument parameter of the menu.
24+
The code below uses the `appExplorer` API's `addContextMenu` method to add the menu to all `Microflow` document nodes. When this menu is clicked, the document's Id is sent as an argument through the `DocumentContext` argument parameter of the menu.
2525

2626
```typescript
2727
import { ComponentContext, DocumentContext, IComponent, Menu, getStudioProApi } from "@mendix/extensions-api";
@@ -49,9 +49,9 @@ export const component: IComponent = {
4949
};
5050
```
5151

52-
The `DocumentContext` payload for the menu action is an object containing a document Id (`{ documentId: string }`). When creating a menu for the `appExplorer`'s `addContextMenu` method, the `DocumentContext` should be used as the context of your menu. The `documentId` will be the Id of the document the menu is attached to (in this scenario, the exact `Microflow` node in the App Explorer).
52+
The `DocumentContext` payload for the menu action is an object containing a document Id (`{ documentId: string }`). When creating a menu for the `appExplorer`'s `addContextMenu` method, the `DocumentContext` should be used as the context of your menu. The `documentId` will be the Id of the document the menu is attached to (in this example, the exact `Microflow` node in the App Explorer).
5353

54-
As explained in the [menu documentation](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu/), the `DocumentContext` is not necessary in order to add your menu to Studio Pro, but if it is not used, the menu will never receive the ID of the clicked document when it gets clicked.
54+
As explained in the [menu documentation](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu/), the `DocumentContext` is not necessary to add your menu to Studio Pro. However, if it is not used, the menu will not receive the clicked document's ID.
5555

5656
## Extensibility Feedback
5757

0 commit comments

Comments
 (0)