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: docs/dynamic-plugins/frontend-plugin-wiring.md
+36
Original file line number
Diff line number
Diff line change
@@ -400,6 +400,42 @@ Each global header entry requires the following attributes:
400
400
401
401
Users can configure multiple global headers at different positions by adding entries to the `mountPoints` field.
402
402
403
+
### Adding application listeners
404
+
405
+
The users can add application listeners using the `application/listener` mount point. Below is an example that uses the aforesaid mount point:
406
+
407
+
```yaml
408
+
# app-config.yaml
409
+
dynamicPlugins:
410
+
frontend:
411
+
<package_name>: # plugin_package_name same as `scalprum.name` key in plugin's `package.json`
412
+
mountPoints:
413
+
- mountPoint: application/listener
414
+
importName: <exported listener component>
415
+
```
416
+
417
+
Users can configure multiple application listeners by adding entries to the `mountPoints` field.
418
+
419
+
### Adding application providers
420
+
421
+
The users can add application providers using the `application/provider` mount point. Below is an example that uses the aforesaid mount point to configure a context provider:
422
+
423
+
```yaml
424
+
# app-config.yaml
425
+
dynamicPlugins:
426
+
frontend:
427
+
<package_name>: # plugin_package_name same as `scalprum.name` key in plugin's `package.json`
428
+
dynamicRoutes:
429
+
- path: /<route>
430
+
importName: Component # Component you want to load on the route
431
+
mountPoints:
432
+
- mountPoint: application/provider
433
+
importName: <exported provider component>
434
+
```
435
+
436
+
Users can configure multiple application providers by adding entries to the `mountPoints` field.
437
+
438
+
403
439
## Customizing and Adding Entity tabs
404
440
405
441
Out of the box the frontend system provides an opinionated set of tabs for catalog entity views. This set of tabs can be further customized and extended as needed via the `entityTabs` configuration:
0 commit comments