I noticed that E.showScroller is using internally Bangle.setUI with mode: "custom" but if I try to do the same in my scroller I get error "Unknown UI mode".
Is there some way to use this "custom" mode, or some other way to create custom scroller? Basically I want what E.showScroller does with the addition that select-callback receives touch x-coordinate in addition to id of selected item.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I noticed that
E.showScroller
is using internallyBangle.setUI
withmode: "custom"
but if I try to do the same in my scroller I get error "Unknown UI mode".Is there some way to use this "custom" mode, or some other way to create custom scroller? Basically I want what
E.showScroller
does with the addition that select-callback receives touch x-coordinate in addition to id of selected item.