You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/banglejs/jswrap_bangle.c
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6342,18 +6342,19 @@ Bangle.setUI("updown", function (dir) {
6342
6342
```
6343
6343
6344
6344
The first argument can also be an object, in which case more options can be
6345
-
specified with `mode:"custom"`:
6345
+
specified`:
6346
6346
6347
6347
```
6348
6348
Bangle.setUI({
6349
-
mode : "custom",
6349
+
mode : "custom", // can also be set to one of the other modes presented above in order to extend them.
6350
6350
back : function() {}, // optional - add a 'back' icon in top-left widget area and call this function when it is pressed , also call it when the hardware button is clicked (does not override btn if defined)
6351
6351
remove : function() {}, // optional - add a handler for when the UI should be removed (eg stop any intervals/timers here)
6352
6352
redraw : function() {}, // optional - add a handler to redraw the UI. Not needed but it can allow widgets/etc to provide other functionality that requires the screen to be redrawn
0 commit comments