Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. anibalcrain
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    anibalcrain

    @anibalcrain

    0
    Reputation
    1
    Posts
    134
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    anibalcrain Follow

    Posts made by anibalcrain

    • RE: Ons-tabbar with ons-navigator active Tab Problems

      @emccorson said in Ons-tabbar with ons-navigator active Tab Problems png to ico:

      Internally, each ons-tab has a radio input which is checked when the tab is active.

      It’s a bit hacky, but you should just need to check the input and uncheck the currently active input for the active styling to work.

      e.g. if fa-search is currently selected and you want to change tab to fa-user-md:

      document.querySelector('ons-tab[icon="fa-search"] input').checked = false;
      document.querySelector('ons-tab[icon="fa-user-md"] input').checked = true;
      

      Thank you soooo much, that’s been bugging me for days x

      posted in Onsen UI
      anibalcrain