Overview

Plugin
A JavaScript file that can be loaded by a portal to extend the default list of widgets and datasources

Types

  1. Widget
  2. Datasource

Use cases

  1. When a custom datasource is necessary
  2. When a custom widget is called for in a separate portal - a plugin can be used to reuse the same widget across multiple portals. Note: the HTML widget is a custom widget but it is not automatically available in portals other than the original

Hosting a plugin

A plugin must be hosted on a website that will return the correct ‘Content-Type’ headers when the resource is requested. e.g., RawGit