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
+32
Original file line number
Diff line number
Diff line change
@@ -454,6 +454,38 @@ Here are the default catalog entity routes in the default order:
454
454
455
455
The visibility of a tab is derived from the kind of entity that is being displayed along with the visibility guidance mentioned in "[Using mount points](#using-mount-points)".
456
456
457
+
## Adding application listeners
458
+
459
+
The users can add application listeners using the `application/listener` mount point. Below is an example that uses the aforesaid mount point to configure a floating action button:
460
+
461
+
```yaml
462
+
# app-config.yaml
463
+
dynamicPlugins:
464
+
frontend:
465
+
red-hat-developer-hub.backstage-plugin-global-floating-action-button: # plugin_package_name same as `scalprum.name` key in plugin's `package.json`
466
+
mountPoints:
467
+
- mountPoint: application/listener # mount point for adding a listener
468
+
importName: DynamicGlobalFloatingActionButton # add your listener component here
469
+
```
470
+
471
+
Users can configure multiple application listeners by adding entries to the `mountPoints` field.
472
+
473
+
## Adding application providers
474
+
475
+
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:
476
+
477
+
```yaml
478
+
# app-config.yaml
479
+
dynamicPlugins:
480
+
frontend:
481
+
red-hat-developer-hub.backstage-plugin-test-plugin: # plugin_package_name same as `scalprum.name` key in plugin's `package.json`
482
+
mountPoints:
483
+
- mountPoint: application/provider # mount point for adding a provider
484
+
importName: ProviderComponent # add your provider component here
485
+
```
486
+
487
+
Users can configure multiple application providers by adding entries to the `mountPoints` field.
488
+
457
489
## Provide additional Utility APIs
458
490
459
491
Backstage offers a Utility API mechanism that provide ways for plugins to communicate during their entire life cycle. Utility APIs are registered as:
0 commit comments