Function GetRunFunction

  • Returns a run function to call that'll load a plugin within your provided container element. The run function will return a dispose function to call to remove the plugin.

    Parameters

    • params: {
          api?: BruceApi.Api;
          container?: HTMLElement;
          containerId?: string;
          plugin?: IPlugin;
          pluginId?: string;
          pluginParams?: any;
      }
      • Optional api?: BruceApi.Api
      • Optional container?: HTMLElement
      • Optional containerId?: string
      • Optional plugin?: IPlugin
      • Optional pluginId?: string
      • Optional pluginParams?: any

    Returns Promise<{
        run: (() => (() => void));
    }>

Generated using TypeDoc