Plugin

Plugin object containing a definition of a plugin used in BlueConic.
It should not be instantiated by a developer, but is automatically injected.

Example
// @formatter:off
define([
  "dojo/_base/declare",
  "blueconic/api/widgets/plugins/_BaseInteraction"
// @formatter:on
], function(declare, _BaseInteraction) {

  return declare("your.package.interactionWidget", [_BaseInteraction],
  {
    // Injected by BlueConic
    plugin: null,

    postCreate: function(){
      this.inherited(arguments);

      var myImageUrl = this.plugin.getBaseUrl() + "/myimagedirectory/myImage.png";

      // do something with myImageUrl
    }
  });
});

Extends

Properties

inherited id String

Unique id of the domain object. Should not be null or empty.

inherited isPersistent Boolean

Is this instance already persisted? If not, this object only 'lives' client-side.

inherited name String

The readable name of the domain object. Should not be null or empty.

Functions

getBaseUrl()String

Returns the base URL of this plugin, which can be used to load resources relative to the location of the plugin.

Returns:
Type Description
String The base URL of this plugin.