mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AppPlugin: add an init function (#17150)
This commit is contained in:
@@ -26,6 +26,13 @@ export class AppPlugin extends GrafanaPlugin<AppPluginMeta> {
|
||||
// Old style pages
|
||||
angularPages?: { [component: string]: any };
|
||||
|
||||
/**
|
||||
* Called after the module has loaded, and before the app is used.
|
||||
* This function may be called multiple times on the same instance.
|
||||
* The first time, `this.meta` will be undefined
|
||||
*/
|
||||
init(meta: AppPluginMeta) {}
|
||||
|
||||
/**
|
||||
* Set the component displayed under:
|
||||
* /a/${plugin-id}/*
|
||||
|
||||
Reference in New Issue
Block a user