Plugin variations

Plugin variations - subplugins that are created inside the origin plugin for the following purposes:

  • to perform the main plugin actions;
  • to contain plugin settings;
  • to display an About window, etc.

Let’s have a look at the Translation plugin. The plugin itself does not need a visual window for translation as it can be done just pressing a single button, but its settings (the translation direction) and an About window must be visual. So we will need to have at least two plugin variations (translation itself and settings), or three, in case we want to add an About window with the information about the plugin and its authors or the software used for the plugin creation.

To create plugin variations, you need to specify its parameters in the config.json file and build the index.html files for each variation.

The .html files for all variations must be placed to the plugin root folder together with the config.json configuration file for the plugin to work correctly.