Hi!,know her any link with information on how to create news widgets.
Thanks
Archived Forum |
|
Create new widgetsSubmitted by Guest on Sat, 22/06/2013 - 21:24Hi!,know her any link with information on how to create news widgets. Thanks » |
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.
Re: Create new widgets
OK, thanks.