Create new widgets

Hi!,know her any link with information on how to create news widgets.

Thanks

TrystanLea's picture

Re: Create new widgets

Hello

Your best bet is to start here:

https://github.com/emoncms/emoncms/tree/master/Modules/dashboard/Views/j...

1) create a copy of the folder dial and rename to the name of your widget

2) rename the script dial_render.js inside the new widget folder to the name of your widget.

3) Change every instance of the word dial in your copy of dial_render.js to the name of your widget.

At this point you should be able to check that the new widget appears in the dashboard creator

4) Try modifying the canvas drawing code in function draw_gauge to build a new widget.

Let us know how you get on.

radioelf's picture

Re: Create new widgets

OK, thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.