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: articles/api-management/developer-portal-extend-custom-functionality.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
---
1
+
---
2
2
title: Add custom functionality to the Azure API Management developer portal
3
3
titleSuffix: Azure API Management
4
4
description: How to customize the managed API Management developer portal with custom functionality such as custom widgets.
5
5
author: dlepow
6
6
ms.author: danlep
7
-
ms.date: 08/29/2022
7
+
ms.date: 11/01/2022
8
8
ms.service: api-management
9
9
ms.topic: how-to
10
10
---
@@ -216,11 +216,11 @@ It accepts three arguments by default:
216
216
This function returns all data passed to your custom widget from the developer portal. It contains other data that might be useful in debugging or in more advanced scenarios. This API is expected to change with potential breaking changes. It returns a JSON object that contains the following keys:
217
217
218
218
*`values` - All the values you've set in the editor, the same object that is returned by `getEditorData`
219
-
219
+
<!-- TEMPORARILY not present
220
220
* `environment` - Current runtime environment for the widget
221
221
222
-
*`origin` - Location origin of the developer portal
223
-
222
+
* `origin` - Location origin of the developer portal
223
+
-->
224
224
*`instanceId` - ID of this instance of the widget
225
225
226
226
### Add or remove custom properties
@@ -232,7 +232,7 @@ To add a custom property:
232
232
1. In the file `src/values.ts`, add to the `Values` type the name of the property and type of the data it will save.
233
233
1. In the same file, add a default value for it.
234
234
1. Navigate to the `editor.html` or `editor/index` file (exact location depends on the framework you've chosen) and duplicate an existing input or add one yourself.
235
-
1. Make sure the input field reports the changed value to the `onChange` function, which you can get from `[buildOnChange`](#azureapi-management-custom-widgets-toolsbuildonchange).
235
+
1. Make sure the input field reports the changed value to the `onChange` function, which you can get from [`buildOnChange`](#azureapi-management-custom-widgets-toolsbuildonchange).
0 commit comments