facebook

Overwrite label of tabBar

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

    FumioUeda
    Participant

    I’m challenging to overwrite labels of tabBar added with multiPage programatically, because of multi-language support of app.

    I tried snipet-like command shown below , for example.
    $(‘#m1-Appname-multiPage1-TabBar’).attr(‘Label’,[‘+A B C D E+’]);
    But, it does’nt work.

    Is there any answer for this issue?
    Please teach me for that.

    Thanks in advance,
    Ueda

    #345330 Reply

    Hi UEDA,

    Hope this helps:

    document.getElementById(“m1-PGMNAME-tabBar1-page1-label”).innerHTML=”ONE”;

    You need to replace PGMNAME with your program name.

    Turgut

    Example:

    
    document.getElementById("m1-PGMNAME-tabBar1-page1-label").innerHTML="ONE";
    
    document.getElementById("m1-PGMNAME-tabBar1-page2-label").innerHTML="TWO";
    
    document.getElementById("m1-PGMNAME-tabBar1-page3-label").innerHTML="THREE";
    
    document.getElementById("m1-PGMNAME-tabBar1-page4-label").innerHTML="FOUR";
    
    document.getElementById("m1-PGMNAME-tabBar1-page5-label").innerHTML="FIVE";
    

    Here is a pic of what it will be like:
    See attachment TabBar.PNG

    Attachments:
    You must be logged in to view attached files.
    #345335 Reply

    FumioUeda
    Participant

    Hi tguneysu,

    Thank you for your quick comment.

    I applied code you suggested to my app soon with small arrangement as it can apply also to all other tabbars.

    It worked perfectly.

    (Please close this topic, thank you.)

    Thanks a lot,
    Ueda

    #345346 Reply

    support-michael
    Keymaster

    @tguneysu
    thx

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Overwrite label of tabBar

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