Where did the "move" function in menus go?

Posted on
  • I seem to remember that the object returned by E.showMenu offered a 'move' function. This is corroborated by the API documentation, yet in the latest firmware it seems to have gone missing. Is this an oversight or was it removed on purpose?

  • It's gone on Bangle.js 2 because there's no longer the idea of a 'selected' menu item that you can move. The list is scrollable (and I guess we could expose a scroll function) but nothing is actually selected until you tap on it

  • Thanks, that makes sense. I was looking for a way to programatically scroll a menu that has more items than fit on one screen. I guess there is no way to do this at them moment then?

  • Not at the moment.

    Looking at the code, it would be possible to allow E.showMenu to take a scroll argument which would set up the initial scroll position. Would that help?

  • Yes, a scroll argument would be helpful indeed.

  • Just added for cutting edge builds

  • Excellent. You move fast, Gordon, thanks!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Where did the "move" function in menus go?

Posted by Avatar for user113695 @user113695

Actions