facebook

Using JS question with MultiPage TabBar:MobiOne 2.3M2 CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #333683 Reply

    jim
    Member

    I’ve been experimenting with the MultiPage and TabBar. I’m kind of new to MobiOne but today I spent all afternoon trying to figure out how to execute simple JS after clicking one of the tabs of a multiPage.

    A simple example of one of my tabs is an “EXIT” tab. When they click on that tab, I’d like to execute javascript: navigator.app.exitApp() ;

    Thanks in advance for any ideas how I could do this.

    #333697 Reply

    support-michael
    Keymaster

    @jim

    The MultiPage and TabBar widgets are very new and still being developed. At this time we do not plan to support mixing tabs for page selection and tabs as button actions. Thus TabBar items are not buttons in the general sense. They are exclusively bound to a multipage widget’s page and perform a show-page action when selected.

    Our recommendation is your scenario is to have your TabBar Exit tab show a page with an Exit button that runs the JS action you desire. A more complex alternative is to use a Toolbar widget and manage a collection of buttons.

    #333698 Reply

    jim
    Member

    Thank you for your response Wayne. I didn’t think it was possible but needed to see if there was something I overlooked.

    btw, your team created a great product ! I love it.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Using JS question with MultiPage TabBar:MobiOne 2.3M2 CLOSED

You must be logged in to post in the forum log in