You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-10/extensibility-api/_index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,6 @@ For information on new releases of the Extensibility API see:
20
20
21
21
## Introduction
22
22
23
-
Extensions are self-contained modules which users can add to Studio Pro. This means that with extensibility you can add new features and functionality to Studio Pro. The Extensibility API is an API that allows developers to interact with a curated list of internal systems of Studio Pro. This documentation provides guides and reference documentation for the Extensibility API.
23
+
Extensions are self-contained modules that enhance Studio Pro by adding new features and functionality. The Extensibility API allows you to interact with a curated set of internal systems, extending Studio Pro’s capabilities with functionality you can define yourself.
24
24
25
-
The API is provided in two flavors, depending which language you are developing in. C# and web based (via Typescript):
25
+
The API is provided in two versions, depending on the language you are developing in:
Once you have finished development on your extension, you might want to package it into an add-on module so that others can start using it. Once you have created the add-on module, it can then be published to the Mendix Marketplace for your extension users to download into their Studio Pro app.
9
+
After completing development on your extension, you can package it into an add-on module so others can use it. Once packaged, the modulecan be published to the Mendix Marketplace, allowing other users to download it into their Studio Pro apps.
10
10
11
-
To package your extension, you will still need the `--enable-extension-development` command line option turned on. Create a new module in your Studio Pro app containing your dev extension, give it an appropriate name. Open the module's settings form and set it to be an Add-on module. In the `Extension name` dropdown, select the extension you want to package into it.
11
+
To package your extension, follow the steps below:
12
+
13
+
1. Make sure the `--enable-extension-development` command-line option is enabled.
14
+
2. In your Studio Pro app, create a new module and include your development extension.
15
+
3. Give the module a name.
16
+
4. Open the module's settings and in the **Export** tab, choose **Add-on module**.
17
+
5. In the **Extension name** drop-down, select the extension you want to package into it.
After you've created your add-on module with its extension, you can now export it, by right-clicking the module in the App Explorer and choosing `Export add-on module package`, as shown below.
21
+
After you have created your add-on module with its extension, you can export it by right-clicking the module in the App Explorer and selecting **Export add-on module package**.
You can now save the add-on module to a location of your choice.
20
26
21
-
# Importing the extension add-on module
27
+
# Importing the Extension Add-on Module
22
28
23
-
Once the add-on module is available to a Studio Pro user, they are now able to add it in their application. They can so so by right-clicking the app in the App Explorer and choosing `Import module package`, as shown below.
29
+
When the add-on module is available to a Studio Pro user, they are now able to add it in their application. This is done by right-clicking the app in the **App Explorer** and selecting **Import module package**.
Once an add-on module containing an extension is imported in the app, Studio Pro will show a warning to the user, asking to trust the extension contained in it. If the user does not choose to trust, the module will still be imported but the extension inside it won't be loaded.
33
+
When an add-on module containing an extension is imported in the app, Studio Pro will show a warning to the user, asking to trust the extension contained in it. If the user does not choose to trust, the module will still be imported but the extension inside it will not be loaded.
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-10/extensibility-api/web/_index.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,23 +13,25 @@ weight: 20
13
13
14
14
## Introduction
15
15
16
-
Extensions can be written in Typescript or other web languages, described here, or using a C# API which is documented separately in [Extensibility API for C# Developers](/apidocs-mxsdk/apidocs/csharp-extensibility-api-10/).
16
+
Extensions can be written in TypeScript or other web languages, described here, or using a C# API, which is documented in [Extensibility API for C# Developers](/apidocs-mxsdk/apidocs/csharp-extensibility-api-10/).
17
17
18
18
For more detailed information on the web API, see the [Mendix Studio Pro Web Extensibility API reference documentation](http://apidocs.rnd.mendix.com/10/extensions-api/index.html).
19
19
20
20
## Prerequisites
21
21
22
-
* You need at least a basic understanding of the Mendix platform.
23
-
* You need some understanding of the Mendix Model.
24
-
* You need to have some TypeScript development experience.
22
+
To use the Web Extensibility API, you must have:
23
+
24
+
* A basic understanding of the Mendix platform
25
+
* Some understanding of the Mendix Model
26
+
* Some TypeScript development experience
25
27
26
28
## Getting Started
27
29
28
-
For detailed explanation on how to get started with extensions, check out[Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-10/getting-started/).
30
+
For detailed information on how to get started with extensions, see[Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-10/getting-started/).
29
31
30
32
## How-tos
31
33
32
-
Here is a list of how-tos for you to begin with:
34
+
Below is a list of how-tos for you to begin with:
33
35
34
36
*[How to Create a Dockable Pane Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-10/dockable-pane-api/)
35
37
*[How to Interact With Local App Files Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-10/local-app-files-api/)
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-10/extensibility-api/web/get-started.md
+55-68Lines changed: 55 additions & 68 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,17 @@ weight: 2
7
7
8
8
## Introduction
9
9
10
-
Studio Pro extensions can be developed using typescript and use standard web development technologies to extend the Studio Pro development environment. This guide shows you how to set up a basic development environment for building an extension using the web extensibility API.
10
+
Studio Pro extensions can be developed using TypeScript and use standard web development technologies to extend the Studio Pro development environment. This document describes how to set up a basic development environment for building an extension using the web extensibility API.
11
11
12
12
For more information see the [Mendix Studio Pro Web Extensibility API](http://apidocs.rnd.mendix.com/10/extensions-api/index.html).
13
13
14
14
### Prerequisites
15
15
16
16
You will need the following prerequisites:
17
17
18
-
* Mendix Studio Pro version 10.21.0 or higher [Mendix Studio Pro](https://marketplace.mendix.com/link/studiopro).
19
-
* Install the latest Studio Pro version from the Mendix [Marketplace](https://marketplace.mendix.com/link/studiopro/).
20
-
* A development IDE to develop your extensions. We recommend using [Visual Studio Code](https://code.visualstudio.com/).
21
-
* Install the latest version 22.x.x of Node: https://nodejs.org/en/download.
18
+
*[Mendix Studio Pro](https://marketplace.mendix.com/link/studiopro) version 10.21.0 or higher
19
+
* A development IDE to develop your extensions. Mendix recommends using [Visual Studio Code](https://code.visualstudio.com/)
20
+
* Install the latest version 22.x.x of Node: https://nodejs.org/en/download
22
21
23
22
{{% alert color="info" %}}
24
23
Extensions can be built on any operating system as the underlying framework is cross-platform.
@@ -35,96 +34,84 @@ This section will show you how to build and test an extension.
35
34
36
35
### Building the Extension
37
36
38
-
From within Visual Studio Code:
37
+
Follow the below steps from within Visual Studio Code.
39
38
40
-
1. Select **File**-> **Open Folder**
41
-
1. Navigate to the folder you just extracted your extension source code to.
42
-
1. Click **Select Folder**.
43
-
1. Select **Yes** if you are asked whether you trust this folder.
44
-
1. Now open a Terminal by selecting**Terminal**-> **New Terminal** from the top menu.
45
-
1. From the Terminal type `npm install`. This installs all dependencies for the extension
46
-
1. Build your extension using the command `npm run build` in the terminal.
39
+
1. Select **File** > **Open Folder**.
40
+
2. Navigate to the folder where you created your extension.
41
+
3. Click **Select Folder**.
42
+
4. Select **Yes** if you are asked whether you trust this folder.
43
+
5. Open a Terminal from the top menu by clicking**Terminal** > **New Terminal**.
44
+
6. From the Terminal, type `npm install`. This installs all dependencies for the extension.
45
+
7. Build your extension using the command `npm run build` in the terminal.
47
46
48
-
Once completed you should now have a build artifact which we can deploy to your Mendix app.
47
+
Once completed, you should now have a build artifact which we can deploy to your Mendix app.
49
48
50
-
You can explore the extension a bit more to understand what it will do when it is installed. Do the following:
49
+
### Exploring the Created Extension
51
50
52
-
1. From the Explorer window navigate to `src/main/index.ts` select it to open the file.
51
+
You can explore the extension to understand what it does when it is installed. Do the following:
52
+
53
+
1. From the Explorer window, navigate to `src/main/index.ts` and select it to open the file.
53
54
54
55
Reading through the source code you should see the following:
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-10/extensibility-api/web/web-extensions-howtos/dockable-pane-api.md
+22-26Lines changed: 22 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ weight: 10
7
7
8
8
## Introduction
9
9
10
-
This guide explains how to create and manage a dockable pane using the web extensions API. A Dockable pane allows you to create a web view that can be docked and moved within the Studio Pro user interface. Examples of dockable panes in Studio Pro are:
10
+
This how-to describes how to create and manage a dockable pane using the web extensions API. A dockable pane allows you to create a web view that can be docked and moved within the Studio Pro user interface. Examples of dockable panes in Studio Pro are:
11
11
12
12
* Marketplace
13
13
* Errors
@@ -16,11 +16,11 @@ This guide explains how to create and manage a dockable pane using the web exten
16
16
17
17
## Prerequisites
18
18
19
-
This guide uses the app created in [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-10/getting-started/). Please complete that how-to before starting this one.
19
+
This guide uses the app created in [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-10/getting-started/). Make sure to complete that how-to before starting this one.
20
20
21
21
## Creating a Dockable Pane
22
22
23
-
To open a dockable pane you must first register the dockable pane handle with the API. To do this, add a call to register the pane to the extension loaded method in the `src/main/index.ts`.
23
+
To open a dockable pane you must first register the dockable pane handle with the API. To do this, add a call to register the pane to the extension loaded method in the `src/main/index.ts`. Use the `paneHandle` you registered to interact with the dockable pane.
0 commit comments