• JS and Programming noob alert. Please be kind as there will likely be future posts from me as I get stuck in :)

    Hi,

    tldr questions:

    1. Is there a work around to use E.showScroller with swipe options left and right, to go to different screens?
    2. Can someone explain what I'd use within the 'remove:' option of E.showScroller or E.showMenu? I found calling each function would shut off when run within the 'back' block but not when run in 'remove', so wondered if this is my usage that was wrong or if remove should be utilised differently.

    Context:
    I've been tinkering with the Bangle 2 JS swipe options for loading different screens. I've managed to create a menu that uses 'E.showScroller', which seemed a nice way for option menus on one screen - whilst being able to define sizes etc (based on what I saw from the default launcher). However I noticed that the option for swiping left and right isn't supported within this function. I'd prefer to be able to navigate this way but I haven't been able to find an 'out of the box' workaround for this. If there's an example I'd appriciate a link to check it out :)

    Failing that, I've been using the back button to return to the previous menu as I saw other apps (settings, alarms etc) that have scrollable menus are doing the same via E.showMenu. The work around is ok but I noticed when I return to any screen that isn't a menu, the 'menu' will be drawn again when I swipe up on that screen.
    I've seen there are 'remove' options for both and that they should be removed if I call the command without arguments but neither approach seems to work when I've experimented. I've since found this can be resolved by calling it in the 'back' block but I was hoping someone could explain a bit more the use case for the 'removal' block and what you'd typically use in it.

    Attached I've uploaded a copy of what I'm playing with E.showScroller and E.showMenu in case you're interested. Should hopefully work out of the box in the IDE tool, to show the menu issue - but let me know if not.

    Appriciate any guidance someone might be able to offer and apologies if this is basic and I've just comepletely misunderstood the documentation that's been written.

    ** Edit** I've since added E. into the 'back' block, which helps to stop the redraws from occuring on other screen pages hitting 'back' would load.


    2 Attachments

About

Avatar for Guptilious @Guptilious started