facebook

It’s possible use two tabBar?

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

    BryanBudelon
    Member

    I have one problem of how utilizing two tabBar.

    When use one excels the other. It were like two walls. I tried to use some function click to hide multipage of another tabBar, but without results.

    Anyone have any idea of ​​something that can be done?

    Thanks everyone!

    #342311 Reply

    support-michael
    Keymaster

    Can you post more details, such as a small project that demonstrates what you are trying to implement, screenshots, etc.?

    Also what version of mobione are you using?

    #342313 Reply

    BryanBudelon
    Member

    Yes.

    Image of screen main.

    Each flap is referring to a screen. However, depending on the order of items of MobiOne, one of multipages always excels.
    Obs: I’m utilizing two multipages also.

    I’m utilizing last version of MobiOne.

    #342315 Reply

    Brandon
    Member

    Yes, you can do this. The trick is to hide the other on the multipage widget on page changing.
    For example,
    on page changing for mutipage1 would hide multipage2 and show multipage1,
    on page changing for multipage2 would high multipage1 and show multipage2

    #342319 Reply

    BryanBudelon
    Member

    @CincyPlanet wrote:

    Yes, you can do this. The trick is to hide the other on the multipage widget on page changing.
    For example,
    on page changing for mutipage1 would hide multipage2 and show multipage1,
    on page changing for multipage2 would high multipage1 and show multipage2

    Exactly. Show one, while hide other.
    I tried to using prePageTransition and postPageTransition, but no results.

    Someone would me help? If specify show some code/script, i post here.

    #342320 Reply

    Brandon
    Member

    If you click on the multipage widget you will see the on page changing property.

    then use the (this is off the top of my head)
    $(‘#m1-yourform-multipage1’).css(‘visible’,’hidden’);//to hide ‘visible’ top show

    #342321 Reply

    BryanBudelon
    Member

    @CincyPlanet wrote:

    If you click on the multipage widget you will see the on page changing property.

    then use the (this is off the top of my head)
    $(‘#m1-yourform-multipage1’).css(‘visible’,’hidden’);//to hide ‘visible’ top show

    Yes, i tried do so.
    But not necessary use the attribute newPage or oldPage?
    Because I need to check which page the user will access, and then verify if is MultiPage1 or multipage2.

    #342322 Reply

    Brandon
    Member

    no, once they click the tab it will activate the correct multipage widget. The only problem I could forsee (without tsting) is if they click on the same page that is active on the hidden tab. If I get a chance later, if you dont figure it out, I will see if I can put together a demo.

    #342323 Reply

    BryanBudelon
    Member

    @CincyPlanet wrote:

    no, once they click the tab it will activate the correct multipage widget. The only problem I could forsee (without tsting) is if they click on the same page that is active on the hidden tab. If I get a chance later, if you dont figure it out, I will see if I can put together a demo.

    I understand your logic, and was one of the ways in which I tried to do, but without results.
    I needed a solution ASAP. However, I can not demand this. I’ll go trying to do, and if you can create some example i the thank.

    #342324 Reply

    support-michael
    Keymaster

    Cincy is doing a great job providing snippets and guidance. I hate to be a dick but my two cents is this is a bad ui design… But you are free to layout the ui as you choose. The issue you are encounter is a direct result of trying to overlap a multipage widgets which is generally not advised. Maybe step back and rethink your ui in light of conventional mobile UI patterns. If you insist on mulitple tabbars and multipage widgets on a single screen I’m sure there is a way with some clever javascript and css but it requires working against convention which is now outside of scope of our product support.

    #342325 Reply

    Brandon
    Member

    Wayne brings up a good point. Getting it to work would be trial and error, and who knows how stable cross-platforms. You could easily do a button tabs and add a cool fade transition to the next page which would have the same layout with different content.
    I dont really think about the layout or anything when Im trying to help, just trying to supply the tips or code needed to get it done. Maybe I should rethink this strategy.

    #342346 Reply

    BryanBudelon
    Member

    I understand the point of view of you. But what would be a good solution for this?

    #342347 Reply

    Brandon
    Member

    I would do the button tab thing. It will still look the same with just a slightly different transition.

    #342350 Reply

    BryanBudelon
    Member

    Not to create another topic … could someone explain to me how to use the “newPage” and “oldPage” on the “On Page Changing” and “On Page Change”?

    And also, is possible use “phoneui.gotoScreen” in Run JavaScript of MobiOne?

    #342351 Reply

    Hi BryanBudelon,

    >Not to create another topic … could someone explain to me how to use the “newPage” and “oldPage” on the “On Page Changing” and “On Page Change”?
    You can learn about those variables in this doc: http://www.genuitec.com/mobile/docs/tabbedNavigation/tabbedNavigation.html#page_change_events

    >And also, is possible use “phoneui.gotoScreen” in Run JavaScript of MobiOne?
    Yes, it’s very doable.

Viewing 15 posts - 1 through 15 (of 19 total)
Reply To: It’s possible use two tabBar?

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