Plugin development – The PluginService

In the InFront designer we can now find a screen called «Plugins» that can be used to create custom user interfaces with HTML and JavaScript. These custom user interfaces, also referred to as plugins, can then be used together with one or multiple reports.

To help the plugin developers we made a plugin service (PluginService) that have functions and properties that works as an interface towards the InFront internal libraries/code. This service should be used for all interaction towards the InFront functionality (like getting data, getting filter metadata, getting filter values/states, reloading etc). This document describes the content of the plugin service.

Prerequisites

InFront is an HTML5 web application built using AngularJS and an InFront plugin is conceptually an AngularJS directive. Developing InFront plugins will therefore require some knowledge about both web technologies in general and about AngularJS and on how Angular directives work.

Continue reading