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-11/extensibility-api/web/web-extensions-howtos/custom-blob-document-api.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ To register a new document type, follow the steps below:
@@ -229,32 +229,34 @@ To register a new document type, follow the steps below:
229
229
230
230
```json {hl_lines=["6"]}
231
231
{
232
-
"mendixComponent": {
232
+
"mendixComponent": {
233
233
"entryPoints": {
234
-
"main": "main.js",
235
-
"ui": {
234
+
"main": "main.js",
235
+
"ui": {
236
236
"editor": "editor.js"
237
+
}
237
238
}
238
-
}
239
-
}
239
+
}
240
240
}
241
241
```
242
242
243
243
## Explanation
244
244
245
245
### RegistertheDocumentType
246
246
247
-
In`src/main/index.ts`, youbeginbyregisteringanewdocumenttype. Onceregistered, youcanperformallCRUDoperationsonit. However, willnotappearintheUIuntilaneditorisalsoregistered.
247
+
In`src/main/index.ts`, youbeginbyregisteringanewdocumenttype. Onceregistered, youcanperformallCRUDoperationsonit. However, itwillnotappearintheUIuntilaneditorisalsoregistered.
248
248
249
249
Optionally, youcanprovidea`readableTypeName`todisplayauser-friendlynameinlogsandtheStudioProUIinsteadofthefulltypename. You can also customize serialization of the document contents to a string. By default, the API uses `JSON.stringify` for serialization and `JSON.parse` for deserialization.
0 commit comments