Fork me on GitHub


You can add custom JavaScript/CoffeeScript, HTML/Jade and CSS files to the mobile frontend from your plugin:

The HTML/Jade files will get appended to the body element of the index page. The JS/CoffeeScript and CSS files will be inserted in the html head element.

Device templates

You can create your own frontend item templates for your devices. First add a getTemplate-function to your device:

Then you need to define the HTML-template with the a corresponding id in an extra added HTML/Jade file:

and define the behavior by adding a item class in an extra added JS/CS file;

You can take a look on the existing item classes for examples.