BangleApps/apps/_example_widget/widget.js

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};
})()