mirror of https://github.com/espruino/BangleApps
17 lines
339 B
JavaScript
17 lines
339 B
JavaScript
|
(() => {
|
||
|
|
||
|
// add the width
|
||
|
var xpos = WIDGETPOS.tr-<the widget width>;
|
||
|
WIDGETPOS.tr-=<the widget width plus some extra pixel to keep distance to others>;
|
||
|
|
||
|
// draw your widget at xpos
|
||
|
function draw() {
|
||
|
|
||
|
// add your code
|
||
|
|
||
|
}
|
||
|
|
||
|
// add your widget
|
||
|
WIDGETS["mywidget"]={draw:draw};
|
||
|
|
||
|
})()
|