BangleApps/apps/_example_widget/widget.js

17 lines
339 B
JavaScript
Raw Normal View History

(() => {
2019-11-24 05:23:30 +00:00
// 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() {
2019-11-24 05:23:30 +00:00
// add your code
}
2019-11-24 05:23:30 +00:00
// add your widget
WIDGETS["mywidget"]={draw:draw};
2019-11-24 05:23:30 +00:00
})()